vahith Posted March 15, 2015 Share Posted March 15, 2015 hi,i am creating box and scaling also done by using scaling.y. it working fine, but when i doing scaling it start from center point. here my question is how to do scale from one side(like from left, right, top, bottom) not from center.. Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted March 15, 2015 Share Posted March 15, 2015 Hello, 2 options:- You use a pivotMatrix to move the center of the mesh - You create your own box with setVerticesData where box is not centered on its own center (https://github.com/BabylonJS/Babylon.js/blob/master/Babylon/Mesh/babylon.mesh.vertexData.js#L364) Quote Link to comment Share on other sites More sharing options...
MarianG Posted March 15, 2015 Share Posted March 15, 2015 I don't know if it is possible, but you can move and scale your object in same time to make the effect that you want. http://www.babylonjs-playground.com/#NJMVY Wingnut 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.