Andrey Zimin Posted January 31, 2018 Share Posted January 31, 2018 Friends! It's a simple mathematical problem. And it can be solved. That is the question. How is it possible to implement built-in methods of Babylon So. There is an object. In the figure it is denoted P(xp, yp). There is a point where the object should move. M(xm, ym) The question of how to organize the rotation of the object so that its positive X-axis was directed in the direction M when the object moves. I mathematically to calculate the angle? mesh.rotate(BABYLON.Axis.Y, THIS_ANGLE, BABYLON.Space.WORLD) Or is there a method to which you can put the coordinates of the point and he will apply and I will turn my object in the desired direction? WARNING: Rotate only around the axis Y (2D rotate) Quote Link to comment Share on other sites More sharing options...
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.