Table of Contents

Interface ISupportMappable

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Describes a convex shape by returning its furthest point in any given direction.

public interface ISupportMappable

Remarks

All points and directions use the shape's local coordinate system.

Methods

GetCenter(out JVector)

Returns a point inside the shape. It does not need to be the center of mass.

void GetCenter(out JVector point)

Parameters

point JVector

An interior point in local space.

SupportMap(in JVector, out JVector)

Computes the point on the shape that is furthest in the specified direction.

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.