jellix Posted April 14, 2017 Share Posted April 14, 2017 Hi, how can I get the absolute positions of points of a curve? I'm getting the curve out of a Path3D Object that is a child of a Mesh. Currently I'm adding the absolute position of the mesh onto the local coordinates of the curve-points. But that's not a cool way, is it? --- Oh, just have to add some info: the mesh that contains the curve is rotated ... Maybe now it's not that easy any more :-) Quote Link to comment Share on other sites More sharing options...
adam Posted April 14, 2017 Share Posted April 14, 2017 var worldPathPosition = BABYLON.Vector3.TransformCoordinates(localPathPosition, mesh.getWorldMatrix()); Quote Link to comment Share on other sites More sharing options...
jellix Posted April 14, 2017 Author Share Posted April 14, 2017 It works, thanks a lot! Excactly what I've needed. So ... how can I mark this thread as solved now? ---- And maybe one more question: Before I've used "var firstAbsolutePoint = myCurve[0].add(myMesh.getAbsolutePosition())" > Why wasn't that the correct way? Quote Link to comment Share on other sites More sharing options...
adam Posted April 14, 2017 Share Posted April 14, 2017 I think if you edit your original post you can add [Solved] to the title. 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.