Rotating a Vector by means of a Quaternion


using cannon.js I needed to rotate some bodies (otherwise the wheels fly onto the body of a car during the first few moments of your scene)… the following code rotates a vector by using a quaternion. More insights into quaternions you can find here

Have fun…



Leave a Reply

Your email address will not be published. Required fields are marked *