How to keep the same yaw(right/left) and pitch(up/down) controls rotation as I roll ?
Hi,
I'm trying to make an object that flies alongside a "road" (keeping his up vector perpendicular to the road).
This part works fine.
Next, I'm using the up/down keys to control the pitch angle and the right/up keys to turn (yaw). To be more precise, my keys move a cursor in front of the object from which I get a vector that I transform into angles.
Until now, I've tried several ways to apply these rotations but each one of them had problems which I'm unable to solve.
Hereinbelow an unity package containing an object and 2 scripts I'm using to find a solution.
You can use this link to download it.
Thanking you in advance.
Your answer
Follow this Question
Related Questions
Unwanted up/down (pitch) movement when tilting 0 Answers
Anyone know how to rotate an object using yaw, pitch, roll of the HTC VIVE and SteamVR? 0 Answers
Copy Roll From one Gameobject to another Without other rotations effecting it 0 Answers
How to make camera moving as the player on a planet 0 Answers
2D TopDown rotating a gun according to its parent position, ON MOBILE, not PC, 0 Answers