C# 클래스 FarseerPhysics.Common.PolygonManipulation.CuttingTools

파일 보기 프로젝트 열기: prime31/Nez

공개 메소드들

메소드 설명
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.

메소드 상세

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.
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.
리턴 bool

splitShape() 공개 정적인 메소드

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
리턴 void