Skip to main content

Rotate Around

rotate around

Use Rotate Around to rotate an input point with a given angle around a given axis. Rotate Around is in the Transform category.

Input

NameData TypeDescription
AVec3The first point on the axis.
BVec3The second point on the axis. A and B form the axis to rotate around.
AngleNumberThe rotated angle in radians.
CurrentVec3The point to rotate.

Output

NameData TypeDescription
ResultVec2The rotated position.

Example

rotate around example

This example uses the Rotate Around node to rotate a cube around Vec3(0,0,1) whenever there is a tap stay event.

rotate around node