1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to rotate an object to point along a vector Unity3D

Discussion in 'Programming/Internet' started by Xigaphactus, Sep 12, 2018.

  1. Xigaphactus

    Xigaphactus Guest

    Hi I have been searching google for some time now with no avail. I was wondering if there was some function or easy way to make an object rotate so it is pointing along a certain vector (in this case, pointing the same way it is moving, but I would like to know generally how to do this with any Vector3) in Unity? I know it is possible to rotate an object using a Vector3 holding EulerAngles, but that is not what I'm looking for, since the object will not point in the direction of that Vector in 3D space.

    Login To add answer/comment
     

Share This Page