crashcat docs
    Preparing search index...

    Function addForceAtPosition

    • Adds a force at a specific world-space position. Generates both linear force and torque: τ = r × F where r is the moment arm (position - center of mass) 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

      • worldPosition: Vec3

        position in world space where force is applied

      • wake: boolean

        if true, wakes the body if sleeping

      Returns void