crashcat docs
    Preparing search index...

    Type Alias OffsetCenterOfMassShape

    offset center of mass shape - shifts the center of mass of a child shape without affecting its collision geometry.

    use case: stabilizing unstable objects (e.g., cars, boats) by lowering their center of mass.

    in crashcat's coordinate system:

    • collision geometry stays at origin
    • centerOfMass property is offset by the specified amount
    • only affects physics calculations (inertia, stability), not collision detection
    type OffsetCenterOfMassShape = {
        aabb: Box3;
        centerOfMass: Vec3;
        offset: Vec3;
        shape: Shape;
        type: OFFSET_CENTER_OF_MASS;
        volume: number;
    }
    Index

    Properties

    aabb: Box3
    centerOfMass: Vec3
    offset: Vec3
    shape: Shape
    volume: number