lhx880619 Posted May 15, 2018 Share Posted May 15, 2018 why the mesh is alway rotating when i use fixed rotation value? pg http://playground.babylonjs.com/#J0B4FR scene.registerBeforeRender(function () { if(plane) plane.rotation = new BABYLON.Vector3(0,Math.PI/10,0) }); Quote Link to comment Share on other sites More sharing options...
Guest Posted May 15, 2018 Share Posted May 15, 2018 This is because the plane already has a rotationQuaternion. So by setting a rotation as well Babylon.js will merge both and restore rotation to null. QUick fix: http://playground.babylonjs.com/#J0B4FR#1 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.