Rotate P

Rotate P icon

In: SDF function > Transform

Description

Rotate the world space around an axis at an adjustable angle.
The output transformed world position can be connected to the P input of most SDF functions to define them in this transformed world space.

Use the Transform pivot helper of the 3D Viewer to visualize the performed rotation.

Tip: P transforms can be chained, but keep in mind the results depend on the order of operations.

Inputs

Inputs

Angle Float
The angle, in turns, at which the world space is rotated.

The angle is visualized by a circle in the Transform pivot helper of the 3D Viewer. Align the camera so as to see the Axis arrow as the center of this circle to clearly see the angle of your rotation as a fraction of a turn.
Axis Float3
The normalized vector defining the axis around which the world space is rotated.
E.g. (0, 1, 0) will rotate the world space around the Y axis of the pivot point.

The axis is visualized by an arrow in the Transform pivot helper of the 3D Viewer. The color of the arrow is mapped on the XYZ components of this vector.

Default: (0, 1, 0)
Pivot position Float3
The world space position of the pivot defining the origin of the rotation.

The pivot point is visualized by the start of the arrow in the Transform pivot helper of the 3D Viewer.
P Float3
The transformed world space position. Use this input to apply additional transformations using the Offset P and Rotate P nodes.

Default: The untransformed world space position.
recommendation-more-help
dd48abc6-e399-43d2-9777-578ec70c5a23