Shape Def
Definition for creating a shape. Default values match Box2D's b2DefaultShapeDef().
Constructors
Properties
Enable contact events for this shape. Only applies to kinematic and dynamic bodies. Ignored for sensors.
Enable hit events for this shape. Only applies to kinematic and dynamic bodies. Ignored for sensors.
Enable pre-solve contact events for this shape. Only applies to dynamic bodies. These are expensive and must be carefully handled due to threading. Ignored for sensors.
Enable sensor events for this shape. False by default, even for sensors.
When true, the shape will trigger a contact creation callback even if the collision filter would normally prevent it. This is useful for custom filtering.
The coefficient of restitution (bounce) usually in the range 0,1.
The rolling resistance, usually in the range 0,1.
The tangent speed for conveyor belt behavior in meters per second.
When true, adding/removing this shape will automatically update the body mass properties. Set to false if you want to manually call applyMassFromShapes().