crashcat docs
    Preparing search index...

    Function addTorque

    • Adds a torque (angular force) directly. Torque is accumulated and integrated over time during physics step. Only affects dynamic bodies.

      Parameters

      • world: World

        the physics world

      • body: RigidBody

        the body to apply torque to

      • torque: Vec3

        torque vector in world space

      • wake: boolean

        if true, wakes the body if sleeping

      Returns void