crashcat docs
    Preparing search index...

    Function solveVelocityConstraintsForIsland

    • solve velocity constraints for a specific island. only processes constraints at the given indices.

      uses cached velocity locals to avoid repeated body property access during the solve loop. for each constraint: velocities are loaded once, all contact point solves operate on locals, then velocities are written back with DOF masking applied once.

      Parameters

      • contactConstraints: ContactConstraints

        contact constraint state

      • bodies: Bodies

        body array

      • constraintIndices: number[]

        indices of constraints to solve (from island)

      Returns boolean

      true if any impulse was applied (not yet converged)