crashcat docs
    Preparing search index...

    Type Alias CollideShapeSettings

    type CollideShapeSettings = {
        activeEdgeMovementDirection: Vec3;
        collectFaces: boolean;
        collideOnlyWithActiveEdges: boolean;
        collideWithBackfaces: boolean;
        collisionTolerance: number;
        maxSeparationDistance: number;
        penetrationTolerance: number;
    }
    Index

    Properties

    activeEdgeMovementDirection: Vec3

    when collideOnlyWithActiveEdges is true a movement direction can be provided. When hitting an inactive edge, the system will select the triangle normal as penetration depth only if it impedes the movement less than with the calculated penetration depth

    collectFaces: boolean

    if true, supporting faces will be collected and stored in the collision result

    collideOnlyWithActiveEdges: boolean

    how active edges (edges that a moving object should bump into) are handled

    collideWithBackfaces: boolean

    if true, back-faces are considered for collision (otherwise they are ignored)

    collisionTolerance: number

    if objects are closer than this distance, they are considered to be colliding (used for GJK) (unit: meter)

    maxSeparationDistance: number

    maximum separation distance for finding contacts when shapes are slightly separated, allows finding contacts even when shapes don't overlap. range: [0, 1], clamped for EPA use.

    penetrationTolerance: number

    a factor that determines the accuracy of the penetration depth calculation. If the change of the squared distance is less than tolerance * current_penetration_depth^2 the algorithm will terminate. (unit: dimensionless)