Skip to content

Conversation

Thorneel
Copy link

@Thorneel Thorneel commented Sep 4, 2025

How to calculate angular velocity doesn't seem to be anywhere in the online doc, and it is very easy to incorrectly assume that they are Euler angles, which happened to me and was reported by others. Since this is where quaternions and their importance are explained, it seems a good place to explain how to obtain correct angular velocity from quaternions.

This is a subject I had considerable difficulties with, and could only solve it thanks to the help of others. Notably the code here is simplified from code helpfully shared by Norgorim (any error is however mine). Hence the need for an explanation in the documentation, and this appears to me as at least the necessary minimum.

How to calculate angular velocity doesn't seem to be anywhere in the online doc, and it is very easy to incorrectly assume that they are Euler angles, which happened to me and was reported by others.
Since this is where quaternions and their importance are explained, it seems a good place to explain how to obtain correct angular velocity from quaternions.

This is a subject I had considerable difficulties with, and could only solve it thanks to the help of others. Notably the code here is simplified from code helpfully shared by Norgorim (any error is however mine).
Hence the need for an explanation in the documentation, and this appears to me as at least the necessary minimum.
Added corrections from AThousandShips
Fixed the comment mismatch between GDScript and C# noted in said corrections

Co-authored-by: A Thousand Ships <[email protected]>
@Calinou Calinou added enhancement area:manual Issues and PRs related to the Manual/Tutorials section of the documentation topic:3d cherrypick:4.4 labels Sep 4, 2025
More fixes of mistakes caught by reviewers

Co-authored-by: Rageking8 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:manual Issues and PRs related to the Manual/Tutorials section of the documentation cherrypick:4.4 enhancement topic:3d
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants