crashcat docs
    Preparing search index...

    Function setMotionType

    • Sets the body's motion type and updates active body tracking.

      Parameters

      • world: World

        The physics world

      • body: RigidBody

        The body to modify

      • motionType: MotionType

        the new motion type

      • wake: boolean

        if true and changing to dynamic/kinematic, wakes the body

      Returns void