C# Class Box2D.Collision.Distance

This is non-static for faster pooling. To get an instance, use the {@link SingletonPool}, don't construct a distance object.
Show file Open project: gerich-home/box2dnet Class Usage Examples

Public Properties

Property Type Description
GJK_CALLS int
GJK_ITERS int
GJK_MAX_ITERS int

Public Methods

Method Description
GetDistance ( DistanceOutput output, SimplexCache cache, DistanceInput input ) : void

Compute the closest points between two shapes. Supports any combination of: CircleShape and PolygonShape. The simplex cache is input/output. On the first call set SimplexCache.count to zero.

Method Details

GetDistance() public method

Compute the closest points between two shapes. Supports any combination of: CircleShape and PolygonShape. The simplex cache is input/output. On the first call set SimplexCache.count to zero.
public GetDistance ( DistanceOutput output, SimplexCache cache, DistanceInput input ) : void
output DistanceOutput
cache SimplexCache
input DistanceInput
return void

Property Details

GJK_CALLS public static property

public static int GJK_CALLS
return int

GJK_ITERS public static property

public static int GJK_ITERS
return int

GJK_MAX_ITERS public static property

public static int GJK_MAX_ITERS
return int