crashcat docs
    Preparing search index...

    Function addImpulseAtPosition

    • Applies an impulse at a specific world-space position. Changes both linear and angular velocity. Only affects dynamic bodies. Always wakes the body.

      Parameters

      • world: World

        the physics world

      • body: RigidBody

        the body to apply impulse to

      • impulse: Vec3

        impulse vector in world space (kg·m/s)

      • worldPosition: Vec3

        position in world space where impulse is applied

      Returns void