lalexl Posted September 22, 2015 Share Posted September 22, 2015 hello I would like to know how to proceed with the detection of a position or a rotation x, y, z of an object on babylon using a sample thank youlike an other game engine : local x, y, z = getposition( object, ktype.globalspace) or local x, y, z = getrotation( object, ktype.globalspace) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted September 22, 2015 Share Posted September 22, 2015 Hello, to get the rotation of a mesh, just use mesh.rotation. This is a BABYLON.Vector3 Quote Link to comment Share on other sites More sharing options...
Dad72 Posted September 22, 2015 Share Posted September 22, 2015 And the position, the same: var yourObject = mesh.position; Quote Link to comment Share on other sites More sharing options...
lalexl Posted September 22, 2015 Author Share Posted September 22, 2015 greattt! thank you for the quick response^^ 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.