- Home /
New position in 3D world based on angles and axis input
Hello!
I want to calculate the "newPosition" to use in Rigidbody.MovePosition(newPosition) and move forward and back (ie, to where the front-side of my object is pointing, or backwards). Lets say my object has some rotation x and y. My inputs are: Input.GetAxis(z axis). I'm having a hard time calculating the new position because of the angles.
Could someone help me, please?
Thank you very much!
Your answer
Follow this Question
Related Questions
MovePosition not as precise as Translate with Kinematic rigidbodies (example unitypackage included) 1 Answer
My Player goes through the colliders even I used Rigidbody.MovePosition , Please help me !! 2 Answers
Mathf.Clamp having weird effects on player object with rigidbody 1 Answer
Touching compound collider breaks trigger 0 Answers
Rigidbody move position smoothly ? (Point and click with rigidbody) ? 1 Answer