Skip to content

format

typescript
Quaternion.SetValues(x, y, z, w)

class: Quaternion

description

Set the individual components of a quaternion.

parameter

param_nametypedescription
xnumberThe x component.
ynumberThe y component.
znumberThe z component.
wnumberThe w component.

reture

typedescription
void

code example

typescript
function QuaternionTest (){
    let identity = Quaternion.identity;
    identity.SetValue(1,2,3,4);
}