Метод | Описание | |
---|---|---|
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.
|
|
EvenlyDistributeShapesAlongPath ( |
||
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 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 |
Результат | List |
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 | Minimum length of the slider joint. |
maxLength | float | Maximum length of the slider joint. |
Результат | List |
public static ConvertPathToEdges ( |
||
path | The path. | |
body | The body. | |
subdivisions | int | The subdivisions. |
Результат | void |
public static ConvertPathToPolygon ( |
||
path | The path. | |
body | The body. | |
density | float | The density. |
subdivisions | int | The subdivisions. |
Результат | void |
public static EvenlyDistributeShapesAlongPath ( |
||
world | ||
path | ||
shapes | IEnumerable |
|
type | BodyType | |
copies | int | |
Результат | List |
public static EvenlyDistributeShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shapes | IEnumerable |
The shapes. |
type | BodyType | The type. |
copies | int | The copies. |
userData | Object | |
Результат | List |
public static EvenlyDistributeShapesAlongPath ( |
||
world | ||
path | ||
shape | ||
type | BodyType | |
copies | int | |
Результат | List |
public static EvenlyDistributeShapesAlongPath ( |
||
world | The world. | |
path | The path. | |
shape | The shape. | |
type | BodyType | The type. |
copies | int | The copies. |
userData | Object | |
Результат | List |
public static MoveBodyOnPath ( |
||
path | The path. | |
body | The body. | |
time | float | The time. |
strength | float | The strength. |
timeStep | float | The time step. |
Результат | void |