API

Interface PhysicShapeOptions

Options for creating a physics shape

interface PhysicShapeOptions {
    parameters?: PhysicsShapeParameters;
    pluginData?: any;
    type?: PhysicsShapeType;
}
Index

The parameters of the shape. Varies depending of the shape type.

pluginData?: any

Reference to an already existing physics shape in the plugin.

The type of the shape. This can be one of the following: SPHERE, BOX, CAPSULE, CYLINDER, CONVEX_HULL, MESH, HEIGHTFIELD, CONTAINER