crashcat docs
    Preparing search index...

    Function addForce

    • Adds a force at the body's center of mass. Force 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 force to

      • force: Vec3

        Force vector in world space

      • wake: boolean

        If true, wakes the body if sleeping

      Returns void