- Home /
Move a Vector3 up according to its rotation.
As simple as that. How do I take an object and move it "up" taking into account its rotation. So if I had a cylinder at a 45 degree angle it would move up into the air and sideways on a 45 degree line.
Comment
Best Answer
Answer by Mike 3 · Mar 10, 2011 at 12:59 AM
You can use transform.up instead
Also, a lot of functions let you specify local space movement, e.g:
transform.Translate(Vector3.up, Space.Self);
Wow I need to spend more time looking at the Transform functions. This is perfect. Thanks.
Your answer
Follow this Question
Related Questions
Rotating a character's velocity? 3 Answers
problem with vector3.right and up 2 Answers
Randomly position Instantiated GameObject's 1 Answer
Help With Simple Waypoint System 0 Answers
Vector normalization question 6 Answers