damian+merfoo=♥ Posted January 21, 2014 Share Posted January 21, 2014 When you link a mesh(child) to another mesh(parent) is there a way to get the child mesh's position? Because currently the position that is returned is just the initial position of the child mesh in relation to the parent mesh. Quote Link to comment Share on other sites More sharing options...
gwenael Posted January 21, 2014 Share Posted January 21, 2014 var worldPosition = mesh.getAbsolutePosition();var worldMatrix = mesh.getWorldMatrix();Is it what you are looking for? Quote Link to comment Share on other sites More sharing options...
gwenael Posted January 21, 2014 Share Posted January 21, 2014 There is also:var meshTransformInParentSpace = mesh._localWorld; Quote Link to comment Share on other sites More sharing options...
damian+merfoo=♥ Posted January 21, 2014 Author Share Posted January 21, 2014 Yes thank you, mesh.getAbsolutePosition() was what I was looking for 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.