- Home /
Question by
fanling3 · Mar 28, 2012 at 06:27 AM ·
vectororientation
About orientation
I would like to know the simplest way to define the orientation of an object, given that I know its forward direction being VectorA, and its up direction being VectorB, where VectorA and VectorB are perpendicular to each other.
I have tried
transform.forward = VectorA;
transform.up = VectorB;
But one will overwrite the other so I cannot get the perfect orientation. Thanks for help.
Comment
Your answer
Follow this Question
Related Questions
Unity Character Controller How to push yourself away from walls or steep slopes? 0 Answers
WorldSpace movement? 1 Answer
How to get a vector3 (postion) 1 unit away from another in the direction of a 3rd vector3? 2 Answers
Unity prediction line renderer 0 Answers
Game Objects same transform.position value, sitting on different places 2 Answers