BSS Posted August 11, 2015 Share Posted August 11, 2015 Hi guysI want to get the current position of mesh after rotating it by some angle. Help me out Quote Link to comment Share on other sites More sharing options...
The Snow Irbix Posted August 11, 2015 Share Posted August 11, 2015 Want you the center of the mesh ?It doesn't change after a rotation Quote Link to comment Share on other sites More sharing options...
BSS Posted August 12, 2015 Author Share Posted August 12, 2015 Not center of mesh. Position of mesh with respect to world coordinates and local coordinates Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 12, 2015 Share Posted August 12, 2015 You can try this:var meshcenter = mesh.getBoundingInfo().boundingBox.center Quote Link to comment Share on other sites More sharing options...
BSS Posted August 12, 2015 Author Share Posted August 12, 2015 Its giving some x,y,z values. with respect to which coordinate system its giving values ? world coordinate or local coordinate system. Quote Link to comment Share on other sites More sharing options...
Temechon Posted August 12, 2015 Share Posted August 12, 2015 Returns the mesh bounding box center in world coordinates.Nevermind, I'm just passing by... Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted August 12, 2015 Share Posted August 12, 2015 mesh.getBoundingInfo().boundingBox.center is in object spacemesh.getBoundingInfo().boundingBox.centerWorld is in world space 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.