SiliconGhetto Engine API
    Preparing search index...

    Function getVelocity

    • Get the current velocity of a platformer entity.

      Parameters

      • entity: number

        The entity ID

      Returns { vx: number; vy: number }

      Object with vx (horizontal) and vy (vertical) velocity