API

Interface PhysicsShapeOptions

Options for createPhysicsShape: the shape type plus its geometry parameters.

interface PhysicsShapeOptions {
    includeChildMeshes?: boolean;
    mesh?: SceneNode;
    parameters?: PhysicsShapeParameters;
    type: PhysicsShapeType;
}
Index
includeChildMeshes?: boolean

When true, mesh and convex-hull shapes accumulate descendant meshes under mesh.

mesh?: SceneNode

Mesh or transform hierarchy used when type is MESH or CONVEX_HULL.