Jump to content

Rotating a mesh by degree's


Recommended Posts


6 hours ago, brianzinn said:

You can also convert to radians using BJS tools (https://github.com/BabylonJS/Babylon.js/blob/master/src/Tools/babylon.tools.ts#L336 :

var radians = Babylon.Tools.ToRadians(angle);

And welcome to the forum!


7 hours ago, davrous said:


Rotations are in radians. You need to convert degrees to radians: https://en.wikipedia.org/wiki/Radian. Radian =  degree * Math.PI / 180

By the way, 45 == Math.PI / 4, 90 == Math.PI / 2 and 180 == Math.PI ;)


I totally misread the documentation. Should go to bed early next time haha. Thanks guys

Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...