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.
|
Method | Description | |
---|---|---|
SanityCheck ( Vertices vertices ) : bool |
public static Cut ( |
||
world | The world. | |
start | The startpoint. | |
end | The endpoint. | |
thickness | float | The thickness of the cut |
return | void |
public static SplitShape ( |
||
fixture | The Fixture to split | |
entryPoint | The entry point - The start point | |
exitPoint | The exit point - The end point | |
splitSize | float | The size of the split. Think of this as the laser-width |
first | Vertices | The first collection of vertexes |
second | Vertices | The second collection of vertexes |
return | void |