Add "Local" Offset Along Rotation

Hi!

I have an issue of needing to move an object “locally”, in reference to another object’s rotation. (Ship movement to move towards the direction Thrust Direction is pointing towards.)

Ship Movement is what moves and with which you look around.

I have two arrows to contol that movement, one for thrust(movement) and one for rotation(Where you look).

I need to have those separate as to be able to turn off the movement changing direction along with the rotation so that it keeps going along that path.

(Imagine you’re in a spaceship and turn off the engines, you keep your momentum to where you last looked before turning off the engines, but can now look around and turn/rotate the ship without changing that momentum)

I need this system so that I can separate movement and rotation controls for things like turning off engines, drifting or dodging, and doing so without physics please.

Thanks!

You could turn the localoffset/time into worldoffset/time and add this with AddWorldOffset. For example if you know you’re moving with 200cm/second in the x-direction in the local reference frame, you could transform (TransformDirection) it with the objects transform into world space and from there on add it with AddWorldOffset. Then you could freely rotate it and it would always fly/swim in the same direction.

This was exacly it. sorry for my newbie question, Thanks