Table of Contents

Class CuttingTools

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

world World

The world.

start Vector2

The startpoint.

end Vector2

The endpoint.

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)

Parameters

fixture Fixture

The Fixture to split

entryPoint Vector2

The entry point - The start point

exitPoint Vector2

The exit point - The end point

first Vertices

The first collection of vertexes

second Vertices

The second collection of vertexes