crashcat docs
    Preparing search index...

    Function addImpulse

    • Applies an impulse at the body's center of mass. Impulse instantly changes velocity: Δv = impulse / mass 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)

      Returns void