/UnityQuaternion_js

Full scratch implementation of UnityEngine.Quantenion

Primary LanguageJavaScriptBoost Software License 1.0BSL-1.0

Unity Quaternion.js

This is full-scratch immitation of UnityEngine.Quaternion

codecov Codacy Badge unittest

How to use

Bring Quaternion.js to your project, and use Quaternion class.

3D vector is represented as an array.

Trivials

This is using Left-handed coordinate system.

Euler rotation is ZXY order.

All same as UnityEngine.Quaternion