Rotate a camera by 90 degree without breaking direction vector?
Hi Experts!
Is it possible to rotate a unity camera (in my case to top down) without breaking the direction vectors?
To reproduce:
Turn camera transform by 90 degreeon X-Axis
Check in the debugger the "new" camera.main.transform.up Vector. It is not exactly (0,0,1) but something like (0,0.000000019,1).
I would expect the Up-Direction of the camera to be exactly (0,0,1). Unfortunateley, there are some floating artifact in that vector on the Y-Axis. That messes up the Y-position of my character movement.
Is this a bug or an not avoidable float number issue? It would be a pitty if I cannot use these comfortable direction vectors anymore.
Thx Chris
Your answer
Follow this Question
Related Questions
How to use Quaternion.Slerp with transform.LookAt? 3 Answers
Check if rotation if facing towards a vector3 0 Answers
Translating a transform also rotates it (Unity 2017.3.1f1) 1 Answer
How to detect if a GameObject is currently rotating? 1 Answer
Rotating a cube in 3D ,Rotating a cube into specific coordinates with given input 0 Answers