of     1   

Sutic
#180860247Friday, January 01, 2016 10:50 PM GMT

I need help understanding how Quaternions work. I need examples of BASIC code about Quaternions, also an explanation.
LicePro
#180860437Friday, January 01, 2016 10:52 PM GMT

ray_revenge
#180860908Friday, January 01, 2016 10:57 PM GMT

i found it easier to understand quaternions by their relationship with axis-angles x,y,z can be thought of as a vector and w can be thought of as an angle you can multiply them together to "combine" them and get a quaternion which will accomplish the same rotation as the factors contrasts with axis-angles, which cannot be "combined", and you have to convert them to some other rotation form (SUCH AS QUATERNIONS) and back to axis-angle axisAngleToQuaternion = function(axis,angle) --returns x,y,z,w local nt = axis*sin(angle/2) return nt.x,nt.y,nt.z,cos(angle/2) end
LicePro
#180860969Friday, January 01, 2016 10:58 PM GMT

€€€€€€
lordrambo
#180861809Friday, January 01, 2016 11:07 PM GMT

BASIC Code: https://en.wikipedia.org/wiki/BASIC

    of     1