🔃Rotator

is an Entity Component

Rotator allows an object to spin on any axis, to any degree, and at any speed. These can all be tested at any time during create mode by pressing the play button on the top right of the object's component menu ▶️

  • Pivot position - dictates around what central point the object will rotate on the xyz axis

    • Think of the pivot position as the object's centre of gravity.

    • By default, each value is set to 0, meaning the object will only spin in place. This is useful for traps like spinning blades or fans.

  • Rotation axis - dictates the direction(s) in which an object will rotate

  • Rotation (degrees) - dictates how far the object rotates.

    • Can be anywhere from -360 to 360 degrees.

      • Figures below 0 will rotate the object one way, while figures above 0 will rotate the object the other way.

  • Speed - dictates how fast the object rotates.

  • Auto-start - dictates whether or not the object begins rotating from the start of the game.

  • Yo-yo - dictates whether or not the object rotates back and forth once reaching its final degree of rotation

  • Loop - dictates whether or not the object will rotate constantly on a loop

    • This is best for objects you want to keep spinning until told otherwise. Even if an object's rotation is set to 360 degrees, it will stop rotating after one turn. Select "Yes" to loop to keep it going.

Common uses

  • Spinning blades and other traps

  • Fans

  • Vehicles

  • Doors and drawbridges - swinging on hinges

  • Collectibles and hearts - make them stand out!

Last updated