Rotate the target object using a vector or manually by entering X, Y & Z rotation in degrees.
Target | Set the target object |
Execute ↳ On Start |
Toggled on the Node will execute as soon as the game starts |
Enabled | Enable or disable the node. Disabled Nodes cannot be executed |
Affect Physical | If disabled, the rotator will only rotate the visual properties of the object |
Loop | Repeat the rotation automatically as soon as it is completed |
Allow Override | When toggled on the rotation can be interrupted before completing by disabling the Node or executing a new rotation. |
Shortest Path | Toggled on the rotator will rotate the object the shortest distance between the start and end points * example case below |
Teleport | The teleport toggle can improve the interpolation between start and end point when making a large rotation over a short time |
Operation | Set the operation of the rotator,: Rotate, Set Rotation, or Set Rotation Offset - jump to Operation Types |
Space | Set the space: Local, Parent or Global - jump to Space Types |
Vector | Input a vector from another Node to use as the rotation value |
↳ X, Y & Z | Manually input X, Y & Z values to use as the rotation value |
Duration | Set the duration for the rotation |
Tween | Set how the rotation should interpolate between start and end points. When the Tween setting is Linear, the rotation proceeds evenly. Test different settings for example to create a smooth start or end. |
On Loop/End | Send a signal to other Nodes or objects when the rotation is complete |
The goal is to rotate an object 270 degrees on the Y axis over 1 second.
With shortest path off the object will rotate 270 degrees over 1 second but with Shortest Path toggled on the object will only rotate -90 degrees because the end point of 270 degrees is only -90 degrees away from the start point of zero.
Rotate | Rotate the object from the starting rotation to the final rotation over the duration. If the Node is executed again with the same values the rotation will happen again with the last end rotation now the starting rotation. |
Set Rotation | Rotate the object from the starting rotation to the final rotation over the duration. If the Node is executed again with the same values nothing will happen as the object has already been rotated to the set rotation. |
Set Rotation Offset | In Set Rotation Offset the starting rotation of the object is always zero. It rotates the object from the starting rotation to the final rotation over the duration just like Rotate but if the Node is executed again with the same values the rotation will not happen again as the object has already been rotated to the set rotation. Good if being used in conjunction with the Wave Generator. |
Local | Rotations will align with the rotation of the target object |
Parent | Rotations will align with the rotation of the target object's parent (only if the object is glued to another object) |
Global | Rotations will align with global X, Y & Z coordinates |
Here's a link to an example scene that shows how to implement and use the Rotator node: