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.

      Creates transform wrapper internally around shape A.

      Parameters

      • out: GjkCastShapeResult

        output result object

      • posAInB: Vec3

        position of shape A in shape B's local space

      • quatAInB: Quat

        rotation of shape A in 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