• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    RotateObject

    RotateObject is a built-in component for rotating GameObjects continuously or over a specified duration. This component can be found in the built-in components section of the Assets Catalog and dragged onto any GameObject. Configure rotation speed, duration, and control playback through pause, resume, and restart methods.

    Properties

    Event that fires when the rotation animation completes.

    Methods

    Pause

    ClientOnly
    NoSelfParameter

    Pauses the rotation animation.

    Returns

    void

    Restart

    ClientOnly
    NoSelfParameter

    Restarts the rotation animation from the beginning.

    Returns

    void

    Resume

    ClientOnly
    NoSelfParameter

    Resumes the rotation animation from where it was paused.

    Returns

    void

    SetDuration

    ClientOnly
    NoSelfParameter

    Sets the duration for the rotation animation in seconds.

    Parameters

    duration
    number

    Returns

    void

    SetRotataionSpeed

    ClientOnly
    NoSelfParameter

    Sets the rotation speed vector for each axis (x, y, z).

    Parameters

    speedVector

    Returns

    void

    Updated 13 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.