Struct b3ShapeDef
- Namespace
- Box3D.Native
- Assembly
- Box3D.NET.Native.dll
The definition used to create a shape. Mirror of b3ShapeDef.
public struct b3ShapeDefInherited Members
Remarks
Always start from B3.b3DefaultShapeDef(). The definition and the
geometry are cloned by Box3D, except for meshes and height fields, whose data
is referenced and must outlive the shape.
Fields
- baseMaterial
-
The base surface material. Ignored for compound shapes.
- density
-
The density, usually in kilograms per cubic metre.
- enableContactEvents
-
Whether contact events are raised for this shape. Off by default.
- enableCustomFiltering
-
Whether the custom filter callback applies to this shape.
- enableHitEvents
-
Whether hit events are raised for this shape. Off by default.
- enablePreSolveEvents
-
Whether pre-solve events are raised for this shape. Off by default.
- enableSensorEvents
-
Whether sensor events are raised for this shape. Off by default.
- enableSpeculativeContact
-
Whether speculative collision is enabled. Leave this on unless ghost collisions matter more than continuous collision under rotation.
- explosionScale
-
The explosion scale used by
b3World_Explode. Non-dimensional. - filter
-
The collision filtering data.
- internalValue
-
Used internally to detect a valid definition. Do not set.
- invokeContactCreation
-
Whether the shape scans for contacts on the next step.
- isSensor
-
Whether this shape is a sensor, generating overlap events but no collision response.
- materialCount
-
The number of entries in Box3D.Native.b3ShapeDef.materials.
- materials
-
Per-triangle surface materials for mesh shapes.
- name
-
An optional name for debugging, as a null-terminated UTF-8 string.
- updateBodyMass
-
Whether the body recomputes its mass when this shape is created. On by default.
- userData
-
Application data associated with the shape.