Method | Description | |
---|---|---|
AttachBodiesWithRevoluteJoint ( |
Attaches the bodies with revolute joints.
|
|
AttachBodiesWithSliderJoint ( |
Attaches the bodies with revolute joints.
|
|
ConvertPathToEdges ( |
Convert a path into a set of edges and attaches them to the specified body. Note: use only for static edges.
|
|
ConvertPathToPolygon ( |
Convert a closed path into a polygon. Convex decomposition is automatically performed.
|
|
EvenlyDistibuteShapesAlongPath ( |
Duplicates the given Body along the given path for approximatly the given copies.
|
|
EvenlyDistibuteShapesAlongPath ( |
Duplicates the given Body along the given path for approximatly the given copies.
|
|
MoveBodyOnPath ( |
Moves the body on the path.
|
public static AttachBodiesWithRevoluteJoint ( |
||
world | The world. | |
bodies | List | The bodies. |
localAnchorA | Vector2 | The local anchor A. |
localAnchorB | Vector2 | The local anchor B. |
connectFirstAndLast | bool | if set to |
collideConnected | bool | if set to |
return | void |
public static AttachBodiesWithSliderJoint ( |
||
world | The world. | |
bodies | List | The bodies. |
localAnchorA | Vector2 | The local anchor A. |
localAnchorB | Vector2 | The local anchor B. |
connectFirstAndLast | bool | if set to |
collideConnected | bool | if set to |
minLength | float | |
maxLength | float | |
return | void |
public static ConvertPathToEdges ( |
||
path | The path. | |
body | The body. | |
subdivisions | int | The subdivisions. |
return | void |
public static ConvertPathToPolygon ( |
||
path | The path. | |
body | The body. | |
density | float | The density. |
subdivisions | int | The subdivisions. |
return | void |
public static EvenlyDistibuteShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shapes | IEnumerable |
The shapes. |
type | BodyType | The type. |
copies | int | The copies. |
density | float | |
return | List |
public static EvenlyDistibuteShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shape | The shape. | |
type | BodyType | The type. |
copies | int | The copies. |
density | float | The density. |
return | List |
public static MoveBodyOnPath ( |
||
path | The path. | |
body | The body. | |
time | float | The time. |
strength | float | The strength. |
timeStep | float | The time step. |
return | void |