Struct SupportPrimitives.Cone
Represents a cone as a lightweight support-mapped query primitive. The symmetry axis is the Y-axis. The cone is centered at its centroid: the base sits at Y = -height/4 and the apex at Y = 3*height/4.
public readonly struct SupportPrimitives.Cone : ISupportMappable
- Implements
- Inherited Members
Constructors
Cone(float, float)
Represents a cone as a lightweight support-mapped query primitive. The symmetry axis is the Y-axis. The cone is centered at its centroid: the base sits at Y = -height/4 and the apex at Y = 3*height/4.
public Cone(float radius, float height)
Parameters
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 that must lie strictly 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)