Struct SupportPrimitives.Cylinder
Represents a cylinder as a lightweight support-mapped query primitive. The symmetry axis is the Y-axis.
public readonly struct SupportPrimitives.Cylinder : ISupportMappable
- Implements
- Inherited Members
Constructors
Cylinder(float, float)
Represents a cylinder as a lightweight support-mapped query primitive. The symmetry axis is the Y-axis.
public Cylinder(float radius, float halfHeight)
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)