Skip to main content
Version: 4.3.0

Spin

spin

The Spin node assigns an object a fourth axis that it can be rotated around. This rotation can be combined with a current rotation once an axis has been created. Spin is in the Utility category.

Input

NameData TypeDescription
Current RotationVec3The current rotation of the Transform.
Up DirVec3The axis to rotate around.
AngleNumberThe rotated angle in radians.

Output

NameData TypeDescription
Result RotationVec3The result rotation.

Example

spin example

In this example, a diagonal axis has been created through the body of a cube. The axis will intersect the object’s origin (0,0,0) and the coordinates set through Up Dir (in the case, 1,1,1). In this configuration, the Angle input will determine how many radians the object rotates per frame.

spin node