- Home /
Question by
thenachotech1113 · Dec 22, 2013 at 06:11 PM ·
rotationmovementhelicopterhorizontal movement
helicopter horizontal movement problem C#
hey nity comunity, i have tried to achieve the horizontal movement a helicopter has, created by vertical thrust and the rotation of the source of that thrust. this is how i have been trying to do it:
thrust = gravity + Input.GetAxis("Thrust");
horizontalThrust = new Vector2 (transform.rotation.x /45, transform.rotation.z/45);
transform.Translate(horizontalThrust.x, 0, horizontalThrust.y, Space.Self);
i have also tried to use eulerAngles instead of transform.rotation, if u have any ideas of why is this not working, or how could i make it work i would much apreciate it
Comment
Your answer
Follow this Question
Related Questions
Help with Character Controller 1 Answer
8 directional movement rotation problem 0 Answers
Rotating Character 1 Answer
(sprite2D) Movement like this game... 1 Answer
Rotate an object such that it is theta degrees relative to another object 1 Answer