Jump to content

Is there a setRotation function?


valepu
 Share

Recommended Posts

Hello,

I want to make it so that a plane mesh follows the camera (i don't want to use billboard mode for...reasons), which it wouldn't be hard to do (set rotation.y equal to camera.alpha, and it works fine) but since the plane has been previously rotated using the "lookAt" function now it uses Quaternions which i can't really grasp how they work at the moment.

 

Is there a way to just set the rotation of a mesh to a certain value without having to use quaternions, or a way to convert a Vector3 rotation into a quaternion rotation?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...