I have an object that is supposed to be like a satellite (a sphere)
This object has child objects (cones) that are its ‘thrusters’
I would like to apply an impulse to the sphere based on the position/orientation of these cones around the sphere (simulating firing thrusters)
Is there an easy way to get a Vector that represents a point on a unit sphere that would correspond to a game objects orientation?
Another example is if I place a child object 1 unit directly above another object-
I could use obParent.getVectTo(obChild) and as I rotate the parent object it would always give me the vector.
Then I could apply the impulse like this
vect = obParent.getVectTo(obChild) obParent.applyImpulse(obChild.worldPosition, vect)
I’d like to get this vector from the objects orientation. Does this make any sense?
Thanks for any help.