Struct DistanceProxy
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
A distance proxy is used by the GJK algorithm. It encapsulates any shape.
public struct DistanceProxyInherited Members
Constructors
DistanceProxy(Shape, int)
Initialize the proxy using the given shape. The shape must remain in scope while the proxy is in use.
public DistanceProxy(Shape shape, int index)Parameters
Fields
Radius
The radius
internal float RadiusField Value
Vertices
The vertices
internal Vertices VerticesField Value
Methods
GetSupport(Vector2)
Get the supporting vertex index in the given direction.
public int GetSupport(Vector2 direction)Parameters
directionVector2-
The direction.
Returns
GetSupportVertex(Vector2)
Get the supporting vertex in the given direction.
public Vector2 GetSupportVertex(Vector2 direction)Parameters
directionVector2-
The direction.