Table of Contents

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

shape Shape

The shape.

index int

The index.

Fields

Radius

The radius

internal float Radius

Field Value

float

Vertices

The vertices

internal Vertices Vertices

Field Value

Vertices

Methods

GetSupport(Vector2)

Get the supporting vertex index in the given direction.

public int GetSupport(Vector2 direction)

Parameters

direction Vector2

The direction.

Returns

int

GetSupportVertex(Vector2)

Get the supporting vertex in the given direction.

public Vector2 GetSupportVertex(Vector2 direction)

Parameters

direction Vector2

The direction.

Returns

Vector2