Struct SupportPrimitives.Box
Represents a box as a lightweight support-mapped query primitive.
public readonly struct SupportPrimitives.Box : ISupportMappable
- Implements
- Inherited Members
Constructors
Box(JVector)
Represents a box as a lightweight support-mapped query primitive.
public Box(JVector halfExtents)
Parameters
halfExtentsJVector
Methods
GetCenter(out JVector)
Computes a point deep within the shape, used as an initial search point in GJK-based algorithms.
public 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.
public void SupportMap(in JVector direction, out JVector result)