Type Alias CompoundSubShape
CompoundSubShape:
| {
shape: "box";
half: readonly [number, number, number];
pos: readonly [number, number, number];
rot?: readonly [number, number, number, number];
}
| {
shape: "cylinder";
radius: number;
halfHeight: number;
pos: readonly [number, number, number];
rot?: readonly [number, number, number, number];
}
| {
shape: "capsule";
radius: number;
halfHeight: number;
pos: readonly [number, number, number];
rot?: readonly [number, number, number, number];
}
| {
shape: "sphere";
radius: number;
pos: readonly [number, number, number];
rot?: readonly [number, number, number, number];
}
One primitive sub-shape of a PhysicsWorld.addCompoundCollider body, in the compound's local space. Box half-extents are per-axis; cylinder / capsule axis is local Y.