Table of Contents

Struct SupportPrimitives.Cone

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Represents a cone as a lightweight support-mapped query primitive. The symmetry axis is the Y-axis.

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.

public Cone(float radius, float height)

Parameters

radius float
height float

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

point JVector

A 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)

Parameters

direction JVector

The search direction in local space. Does not need to be normalized.

result JVector

The point on the shape's surface furthest along direction.