C# Class FarseerPhysics.Common.PolygonManipulation.CuttingTools

Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
cut ( World world, Vector2 start, Vector2 end ) : bool

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 ( Fixture fixture, Vector2 entryPoint, Vector2 exitPoint, Vertices &first, Vertices &second ) : void

Split a fixture into 2 vertice collections using the given entry and exit-point.

Method Details

cut() public static méthode

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 cut ( World world, Vector2 start, Vector2 end ) : bool
world FarseerPhysics.Dynamics.World The world.
start Microsoft.Xna.Framework.Vector2 The startpoint.
end Microsoft.Xna.Framework.Vector2 The endpoint.
Résultat bool

splitShape() public static méthode

Split a fixture into 2 vertice collections using the given entry and exit-point.
public static splitShape ( Fixture fixture, Vector2 entryPoint, Vector2 exitPoint, Vertices &first, Vertices &second ) : void
fixture FarseerPhysics.Dynamics.Fixture The Fixture to split
entryPoint Microsoft.Xna.Framework.Vector2 The entry point - The start point
exitPoint Microsoft.Xna.Framework.Vector2 The exit point - The end point
first Vertices The first collection of vertexes
second Vertices The second collection of vertexes
Résultat void