Home > decentraland-ecs > Quaternion > RotationAxis
Creates a quaternion from a rotation around an axis
Signature:
static RotationAxis(axis: Vector3, angle: number): Quaternion;
Returns: Quaternion
a new quaternion created from the given axis (Vector3) and angle in radians (float)
Parameter | Type | Description |
---|---|---|
axis |
Vector3 |
defines the axis to use |
angle |
number |
defines the angle to use (in Euler degrees) |