crashcat docs
    Preparing search index...

    Type Alias ShapeDef<S>

    Type Parameters

    Index

    Properties

    cast a ray against the shape

    category: ShapeCategory

    Shape category used for collision dispatch registration

    collidePoint: CollidePointVsShapeFn<S>

    test if a point collides with the shape

    computeMassProperties: ComputeMassPropertiesImpl<S>

    get mass properties for the shape

    getInnerRadius: GetInnerRadiusImpl<S>

    get inner radius - radius of the biggest sphere that fits entirely in the shape

    getLeafShape: GetLeafShapeImpl<S>

    navigate to leaf shape following sub shape id hierarchy

    getSubShapeTransformedShape: GetSubShapeTransformedShapeImpl<S>

    navigate to transformed shape following sub shape id hierarchy, accumulating transforms

    getSupportingFace: GetSupportingFaceImpl<S>

    get supporting face

    getSurfaceNormal: GetSurfaceNormalImpl<S>

    get surface normal

    setSupport?: SetSupportImpl<S>

    Fill a monomorphic Support struct for this shape (+ mode + scale). Only convex shapes define this; undefined for non-convex shapes.

    the Support struct to fill

    the shape instance

    support function mode (INCLUDE/EXCLUDE_CONVEX_RADIUS)

    scale to apply to the shape

    type: ShapeType

    Methods

    • Register collision and cast handlers for this shape type

      Returns void