crashcat docs
    Preparing search index...

    Function updatePositionFromCenterOfMass

    • Updates the body's position (shape origin) based on centerOfMassPosition. This derives position from centerOfMassPosition, which is the primary property modified by physics. Formula: position = centerOfMassPosition - rotation × shape.centerOfMass

      Parameters

      Returns void