The Rotor is a node making its child rotate with different useful properties. Like keeping the child's rotation, rotating back and forth between 2 angles and more.
Description of the properties of the Rotor node :
- Speed : speed of the rotation, 0 to disable, negative value to change the direction. The actual rotation speed is rotate(speed*delta).
- Keep children rotation : node affected by the Rotor will keep their own rotation while orbiting around the Rotor
- Angle total : the angle in radian the Rotor has to reach before it considers it has done a full rotation, a full circle (2*PI) by default
- Angle decal : actual angle from which the Rotor is gonna start rotating, 0 by default
- Iterations : number of times the Rotor will do a full rotation before it stops rotating.
- Set to -1 to make unlimited rotations
- When end reached : the action the Rotor must do once it has done a full rotation
- Loop from start : the Rotor comes back to its start angle and keeps rotating
- Go back : the Rotor stays where it is and starts rotating in the opposite direction
- Flipping :
- Use flipping : allows for the children nodes to be flipped when they reach a certain angle. This property enables the horizontal, vertical or both flipping.
- Flipping angle : angles at which the nodes must be flipped. X for horizontal, Y for vertical.
- Use flip when possible : if the flipped node has a flip_h and flip_v properties, those will be used instead of modifying the scale of the node.
- Children Options
- Remote children : you can add to this array the nodepaths to nodes you want the Rotor to have an effect on. By default, all the Rotor’s children will be affected so it’s only for nodes that aren’t children of the Rotor.
- Allow adding : set to true if the remote children array can be modified at runtime during the game. Setting to true could have a negative impact on the performances.
- Disabled children : By default, all the Rotor’s children will be affected by the Rotor’s rotation. However, you can add to this array the nodepaths to the Rotor’s children you don’t want the Rotor to have an effect on.
- Allow removing : same than allow adding but for the disabled children array. Setting to true could have a negative impact on the performances.
- Tweening :
- Easing : the type of easing that will be used by the tween. Set to none to disable tweening. When tweening is enabled, the rotation won’t be mad with the rotate(speed*delta) function, but by a tween.