Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity quaternion

/* Quaternion is a combination of a vector3 and a scalar used to represent the rotation or orientation of an object.

The structure of quaternion looks like this (xi, yj,zk,w) where (xi,yj,zk) is a unit vector that represents the angle between the orientation and each individual axis. “w” represents the degree of rotation along the unit vector (xi,yj,zk).

In Unity, Quaternion can also be represented using a vector 4. */

Quaternion rot=new Quaternion(0.4f,0.5f,0.9f,1);
Source by vionixstudio.com #
 
PREVIOUS NEXT
Tagged: #unity #quaternion
ADD COMMENT
Topic
Name
7+3 =