Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make controller affect another object than the one controller is attached to
#3
Actually I'm trying to use SplineController along other controllers implemented earlier for other type of movements. The position of the controller act as a kind of anchor for the movement themselves. This rules out the syncing solution you proposed as an alternative to changing the code I suppose. I seriously consider changing that in the future but meanwhile I try to keep things homegeneous.

I'd have to call the GetTransformPosition/Rotation on each update from another script, right? 

I have another proposition though. I might be missing something important here so my apologizes if this proposition is bad for some reasons. The transform property seems to be used for getting position/forward vector/up vector (I don't find rotation though), setting local or world position according to the Space property (others?). Won't it be easier to add a protected Transform field (and a corresponding property maybe) in CurvyController that defaults to the transform of the object on which the controller is attached to and use that instead of transform property in the existing methods? It would let us change that if we want without affecting the normal usage of the controller.

By the way, great support so far. Thank you.
Reply


Messages In This Thread
RE: How to make controller affect another object than the one controller is attached to - by Aberdyne - 01-13-2016, 07:38 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Create Game Object Renaming Options rickgplus 1 1,224 09-23-2025, 09:33 AM
Last Post: _Aka_
  Morph game object along curve. mikechr2000 5 3,590 02-04-2025, 09:30 PM
Last Post: _Aka_
  Create Mesh Node, Make Static Options rickgplus 1 2,094 01-23-2025, 10:12 AM
Last Post: _Aka_
  Is it possible to make the face at the end of mesh? Chanon 3 2,821 11-14-2024, 04:38 PM
Last Post: _Aka_

Forum Jump: