crashcat docs
    Preparing search index...

    Function gjkCastShape

    • Cast a convex shape against another convex shape using GJK. Shape A is moving in direction displacement. Shape B is stationary.

      Parameters

      • out: GjkCastShapeResult

        output result object

      • transformAtoB: Mat4

        transform matrix from shape A's local space to shape B's local space

      • shapeASupport: Support

        support function for shape A (WITHOUT position/rotation transform)

      • shapeBSupport: Support

        support function for shape B

      • displacement: Vec3

        direction and distance to move shape A

      • tolerance: number

        convergence tolerance for GJK

      • convexRadiusA: number

        convex radius of shape A

      • convexRadiusB: number

        convex radius of shape B

      • maxLambda: number

        the max fraction along the sweep

      Returns void