Method | Description | |
---|---|---|
attachBodiesWithRevoluteJoint ( |
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.
|
|
evenlyDistributeShapesAlongPath ( |
Duplicates the given Body along the given path for approximatly the given copies.
|
|
evenlyDistributeShapesAlongPath ( |
||
evenlyDistributeShapesAlongPath ( |
Duplicates the given Body along the given path for approximatly the given copies.
|
|
moveBodyOnPath ( |
Moves the given body along the defined 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 | List |
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 evenlyDistributeShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shapes | IEnumerable |
The shapes. |
type | BodyType | The type. |
copies | int | The copies. |
userData | object | |
return | List |
public static evenlyDistributeShapesAlongPath ( |
||
world | ||
path | ||
shape | ||
type | BodyType | |
copies | int | |
return | List |
public static evenlyDistributeShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shape | The shape. | |
type | BodyType | The type. |
copies | int | The copies. |
userData | object | The user data. |
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 |