Interface ISupportMappable
Defines an interface for a generic convex shape characterized by its support function.
public interface ISupportMappable
Remarks
The support function is the fundamental operation for GJK-based collision detection algorithms. Any convex shape can be represented implicitly through its support mapping without requiring explicit vertex or face data.
Methods
GetCenter(out JVector)
Computes a point deep within the shape, used as an initial search point in GJK-based algorithms.
void GetCenter(out JVector point)
Parameters
pointJVectorA point guaranteed to be inside the convex hull, typically the center of mass.
SupportMap(in JVector, out JVector)
Computes the point on the shape that is furthest in the specified direction.
void SupportMap(in JVector direction, out JVector result)