syed samoon Posted January 8, 2018 Share Posted January 8, 2018 Hi, I have a doubt.. how to rotate and scaling the animated mesh without affecting the mesh shape and other. which was imported using the importmesh function. Advance thanks for response Quote Link to comment Share on other sites More sharing options...
JohnK Posted January 8, 2018 Share Posted January 8, 2018 Would you add more explanation as I am not clear on what you are trying to achieve? Have you created an animated mesh somewhere that you want to import into Babylon.js? Quote Link to comment Share on other sites More sharing options...
MarianG Posted January 8, 2018 Share Posted January 8, 2018 Hi. You can parent your object and play with parent.http://www.babylonjs-playground.com/#2SN4VZ#6 Arte 1 Quote Link to comment Share on other sites More sharing options...
syed samoon Posted January 10, 2018 Author Share Posted January 10, 2018 On 1/9/2018 at 12:28 AM, JohnK said: Would you add more explanation as I am not clear on what you are trying to achieve? Have you created an animated mesh somewhere that you want to import into Babylon.js? the animated mesh was created by 3ds max and i want to rotate and scale it using BJS script but it was done rotation // rotation var axis = new BABYLON.Vector3(0, 1, 0); var angle = Math.PI; var quaternion = new BABYLON.Quaternion.RotationAxis(axis, angle); player.rotationQuaternion = quaternion; //scaling player.scaling = new BABYLON.Vector3(0.1, 0.1, 0.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.