Addons documentation
  • 😄Getting Started
  • 🧩Components
    • 👟Godot Essentials Motion Component
      • 🤸Top-Down Movement Component
      • 🤾Platform Movement Component
      • 🔲Grid Movement Component
    • 💓Health Component
    • 🎥Shake Camera Component
    • 🌪️Rotator Component
    • 🚀Projectile component
    • 🔁Finite State Machine
  • ⏳Autoload
    • 🎒Helpers
    • 🎧AudioManager
    • 🎬Scene Transicioner
    • ⚙️Environment variables
    • 🏆Achievements
  • 🎮Examples
    • 🧗‍♂️Alys - Precision platformer
Powered by GitBook
On this page
  • Usage
  • Exported variables
  • Basic constant rotation
  • Orbital rotation
  • Change the clockwise direction
  1. Components

Rotator Component

Rotates nodes at a constant speed and can change their values dynamically creating interesting rotations.

PreviousShake Camera ComponentNextProjectile component

Last updated 1 year ago

Usage

This node can rotate both parent and children nodes so as you'll see in the examples this allow us to create rotations between objects.

Exported variables

  • Rotation degrees per second

  • active

  • clockwise

The rotation degrees per second defines the the speed of rotation, the more angle the faster it will rotate.

The active checkbox disable or enable the rotation for this component on nodes that are directly affected by this component

Clockwise is the direction of the rotation by default, disable it to achieve a counterclockwise

Basic constant rotation

This is the simplest way to use it and is useful for e.g. rotating fans in environment objects.

Orbital rotation

In the previous example if we add another RotatorComponent as child we can create an orbital rotation between the two objects:

Change the clockwise direction

🧩
🌪️
Basic constant rotation
Orbital rotation
Rotator clockwise direction