HughPH.Box2D
Organised dotnet bindings for Box2D 3.1.0
|
A chain shape is a series of connected line segments. More...
Inherits IEquatable< ChainShape >, and IComparable< ChainShape >.
Public Member Functions | |
ChainShape (Body body, ChainDef def) | |
Create a ChainShape on the specified body with the specified definition. | |
void | Destroy () |
Destroys this chain shape. | |
Properties | |
World | World [get] |
Gets the world that owns this chain shape. | |
unsafe ReadOnlySpan< Shape > | Segments [get] |
The chain segments. | |
float | Friction [get, set] |
The chain friction. | |
float | Restitution [get, set] |
The chain restitution (bounciness) | |
int | Material [get, set] |
The chain material. | |
bool | Valid [get] |
Checks if the chain shape is valid. | |
A chain shape is a series of connected line segments.
Create a ChainShape on the specified body with the specified definition.
body | The body on which to create the shape |
def | The ChainDef definition |
|
inline |
Destroys this chain shape.
This will remove the chain shape from the world and destroy all contacts associated with this shape
|
get |
Checks if the chain shape is valid.
|
get |
Gets the world that owns this chain shape.