New extension: <Quaternions>
Description
The extension adds Quaternion functionality to GDevelop. This avoids Euler angles by first converting to Quaternions. Issues like gimbal lock and order of rotations can mostly be ignored with quaternions. Any 3d rotations generally need quaternions and in future it will have slerp functionality, allowing interpolated rotations that are different to Euler interpolation. Made by InkedToast
How to use the extension
- Convert Euler ZYX to Quaternion WXYZ
- Convert Quaternion to Euler (The numbers may look different like a euler 100 100 100 will become -80 80 -80 after converting and then converting back as quaternions have multiple solutions, but the angle will still be the same)
- Multiply Quaternion1 by Quaternion2
- Quaternion Inverse
- Quaternion normalisation (to make length 1)
All functions store values in Struct variables with children W X Y Z. In future the above will also be accessable through expressions. To use effectively convert Euler angles to Quaternion and apply rotations through Quaternion multiplication. Next keep rotations stored as Quaternions and apply by first normalising and then converting back to euler. To reverse a rotation, multiply by the inverse Quaternion. Enjoy.
Checklist
- [x] I've followed all of the best practices.
- [x] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [x] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
Example file
Extension file
👋 Hey @MooseMakesGames, thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with non latin characters ("ASCII") can cause issues, our system won't allow file names with other characters than latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏
👋 Hey @MooseMakesGames, thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with non latin characters ("ASCII") can cause issues, our system won't allow file names with other characters than latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏
👋 Hey @MooseMakesGames, thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with non latin characters ("ASCII") can cause issues, our system won't allow file names with other characters than latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏
👋 Hey @MooseMakesGames, thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with non latin characters ("ASCII") can cause issues, our system won't allow file names with other characters than latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏
👋 Hey @MooseMakesGames, thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.
The following issues have been found by the system concerning the respect of those best practices by your extension:
⟶ ❌ [Dots in sentences]: Field 'description' of the function 'Normalise_Quaternion' misses a dot at the end of the sentence!
⟶ ❌ [Dots in sentences]: Field 'description' of the function 'Quaternion_inverse' misses a dot at the end of the sentence!
⟶ ❌ [Filled out names and descriptions]: Required field 'sentence' of the function 'Euler_To_Quaternion' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'sentence' of the function 'Quaternion_To_Euler' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'sentence' of the function 'Normalise_Quaternion' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'sentence' of the function 'Quaternion_Multiply' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'sentence' of the function 'Quaternion_inverse' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'description' of the function 'Quaternion_inverse parameter 'QuatIn' is not filled out!
⟶ ❌ [Filled out names and descriptions]: Required field 'description' of the function 'Quaternion_inverse parameter 'OutputQuat' is not filled out!
Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏
👋 Hey @MooseMakesGames, thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.
The following issues have been found by the system concerning the respect of those best practices by your extension:
⟶ ❌ [Dots in sentences]: Field 'description' of the function 'Quaternion_inverse parameter 'OutputQuat' has a dot, but it is forbidden there!
Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏