rainerpl Posted October 17, 2016 Share Posted October 17, 2016 Hi, Id like to know, if its possible to scale object bigger by "n" times, then apply that scaling to mesh verts coordinates, and reset scaling back to 1. So mesh remains "n" times bigger, but mesh.scaling.x says its 1. ? Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 17, 2016 Share Posted October 17, 2016 Hi R! Yes, you can use .bakeCurrentTransformIntoVertices()... http://www.babylonjs-playground.com/#10B11N#4 Line 25 - up-scale the plane. Line 26 - bake the verts. Line 27 - reports plane.scaling is { x: 1, y: 1, z: 1 } Hope this helps. Quote Link to comment Share on other sites More sharing options...
rainerpl Posted October 17, 2016 Author Share Posted October 17, 2016 Thanks, Il try that tomorrow and if it works...thank allot funny thing is, i actually saw this "bake" function, but didnt know it bakes scaling. Wingnut 1 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted October 17, 2016 Share Posted October 17, 2016 Yep, it bakes "the big 3"... position, rotation, and scaling. Almost like a defaultify(), eh? Hope it works for ya. GameMonetize 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.