Class CuttingTools
- Assembly
- Alis.dll
The cutting tools class
public static class CuttingTools
Inheritance
Inherited Members
Methods
Cut(World, Vector2, Vector2)
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.
public static bool Cut(World world, Vector2 start, Vector2 end)
Parameters
Returns
- bool
-
True if the cut was performed.
SplitShape(Fixture, Vector2, Vector2, out Vertices, out Vertices)
Split a fixture into 2 vertice collections using the given entry and exit-point.
public static void SplitShape(Fixture fixture, Vector2 entryPoint, Vector2 exitPoint, out Vertices first, out Vertices second)