Rodrix3 Posted May 8, 2018 Share Posted May 8, 2018 Very simple. I have a mesh and I would like to rotate it by setting the current rotation.x to +=0.05. I am actually looking to rotate an object in about 10 degrees on x axis, from initial position. I tried mesh._rotation.x = 0.05 and the result is not what I want. This rotates the mesh 0.05 on EVERY frame. This means that I get an additional rotation per frame render. Instead I want the rotation to be SET to 0.05 (not incremented). I need to set the rotation in absolute terms, not relative. How can this simple thing be done? Thanks so much in advance! P.S: I even tried: mesh.rotate(BABYLON.Axis.X, 0.1, BABYLON.Space.WORLD); ..but again this rotates 0.1 on EVERY frame and rotation is accumulated. I want to set the rotation to the absolute number of 0.1 (not an incremental relative number) Quote Link to comment Share on other sites More sharing options...
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.