Struct SupportPrimitives.Sphere
Represents a sphere as a lightweight support-mapped query primitive.
public readonly struct SupportPrimitives.Sphere : ISupportMappable
- Implements
- Inherited Members
Constructors
Sphere(float)
Represents a sphere as a lightweight support-mapped query primitive.
public Sphere(float radius)
Parameters
radiusfloat
Methods
GetCenter(out JVector)
Computes a representative point within the convex hull, used as an initial search point in GJK-based algorithms.
public void GetCenter(out JVector point)
Parameters
pointJVectorA point inside the convex hull.
SupportMap(in JVector, out JVector)
Computes the point on the shape that is furthest in the specified direction.
public void SupportMap(in JVector direction, out JVector result)