Method | Description | |
---|---|---|
cut ( |
This is a high-level function to cuts fixtures inside the given world, using the start and end points. Note: We don't support cutting when the start or end is inside a shape.
|
|
splitShape ( |
Split a fixture into 2 vertice collections using the given entry and exit-point.
|
public static cut ( |
||
world | The world. | |
start | The startpoint. | |
end | The endpoint. | |
return | bool |
public static splitShape ( |
||
fixture | The Fixture to split | |
entryPoint | The entry point - The start point | |
exitPoint | The exit point - The end point | |
first | Vertices | The first collection of vertexes |
second | Vertices | The second collection of vertexes |
return | void |