valepu Posted September 28, 2015 Share Posted September 28, 2015 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? Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 28, 2015 Share Posted September 28, 2015 Hello just set mesh.rotationQuaternion = null and now you can use mesh.rotation http://doc.babylonjs.com/overviews/How_Rotations_and_Translations_Work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.