crashcat docs
    Preparing search index...

    Function setLinearVelocity

    • Sets the linear velocity of the body. Always wakes the body.

      Parameters

      • world: World

        the physics world

      • body: RigidBody

        the body to set velocity on

      • velocity: Vec3

        new linear velocity vector in world space (m/s)

      Returns void