crashcat docs
    Preparing search index...

    Type Alias ShapeDef<S>

    Type Parameters

    Index

    Properties

    cast a ray against the shape

    collidePoint: CollidePointVsShapeFn<S>

    test if a point collides with the shape

    computeMassProperties: ComputeMassPropertiesImpl<S>

    get mass properties for the shape

    convex?: ConvexShapeDef<S>

    the convex narrowphase's view of this shape; present iff the type is convex

    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

    getMaterial: GetMaterialImpl<S>

    get the material id of the leaf a sub shape id names, -1 for none

    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

    type: ShapeType

    Methods

    • Register collision and cast handlers for this shape type

      Returns void