Skip to main content
TikTok Effect House Platform Logo
Download
Log in
Utility

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

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.