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 DistanceProxy
Inherited 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 Radius
Field Value
Vertices
The vertices
internal Vertices Vertices
Field Value
Methods
GetSupport(Vector2)
Get the supporting vertex index in the given direction.
public int GetSupport(Vector2 direction)
Parameters
direction
Vector2-
The direction.
Returns
GetSupportVertex(Vector2)
Get the supporting vertex in the given direction.
public Vector2 GetSupportVertex(Vector2 direction)
Parameters
direction
Vector2-
The direction.