crashcat docs
    Preparing search index...

    Function solvePositionConstraintsForIsland

    • Solve position constraints for a specific island. Only processes constraints at the given indices.

      Parameters

      • contactConstraints: ContactConstraints

        contact constraint state

      • bodies: Bodies

        body array

      • constraintIndices: number[]

        indices of constraints to solve (from island)

      • penetrationSlop: number

        allowed penetration before correction

      • baumgarteFactor: number

        position correction factor 0-1

      • maxPenetrationDistance: number

        maximum distance to correct in a single iteration

      Returns boolean

      true if any impulses were applied