Can I add velocity to an object relative to it's local axis?
This is the snippet of code:
But it's relative to the world, I want it to be relative to the local object.
Here is the full script.
Convert the current velocity to local space, modify the z component and convert it back to world space:
But if you just want to add/subtract a velocity in the forward direction, use transform.forward:
answered Dec 08 '11 at 11:36 PM