Struct Simplex
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
The simplex
internal struct Simplex
Inherited Members
Fields
Count
The count
internal int Count
Field Value
V
The
internal FixedArray3<SimplexVertex> V
Field Value
Methods
GetClosestPoint()
Gets the closest point
internal Vector2 GetClosestPoint()
Returns
- Vector2
-
The vector
GetMetric()
Gets the metric
internal float GetMetric()
Returns
- float
-
The float
GetSearchDirection()
Gets the search direction
internal Vector2 GetSearchDirection()
Returns
- Vector2
-
The vector
GetWitnessPoints(out Vector2, out Vector2)
Gets the witness points using the specified p a
internal void GetWitnessPoints(out Vector2 pA, out Vector2 pB)
Parameters
Exceptions
ReadCache(ref SimplexCache, ref DistanceProxy, ref Transform, ref DistanceProxy, ref Transform)
Reads the cache using the specified cache
internal void ReadCache(ref SimplexCache cache, ref DistanceProxy proxyA, ref Transform transformA, ref DistanceProxy proxyB, ref Transform transformB)
Parameters
cache
SimplexCache-
The cache
proxyA
DistanceProxy-
The proxy
transformA
Transform-
The transform
proxyB
DistanceProxy-
The proxy
transformB
Transform-
The transform
Solve2()
Solves the 2
internal void Solve2()
Solve3()
Solves the 3
internal void Solve3()
WriteCache(ref SimplexCache)
Writes the cache using the specified cache
internal void WriteCache(ref SimplexCache cache)
Parameters
cache
SimplexCache-
The cache