Table of Contents

Struct DynamicTree.FindNearestResult

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Represents the result of a distance query against the dynamic tree.

public struct DynamicTree.FindNearestResult
Inherited Members

Fields

Distance

The separation distance between the query shape and the found proxy. Zero when the shapes overlap.

public float Distance

Field Value

float

Entity

The closest proxy found.

public IDynamicTreeProxy? Entity

Field Value

IDynamicTreeProxy

Normal

Unit direction from the query shape toward the found proxy, or Zero when the shapes overlap. Do not use this to test whether a result was found.

public JVector Normal

Field Value

JVector

PointA

Closest point on the query shape in world space. Undefined when the shapes overlap.

public JVector PointA

Field Value

JVector

PointB

Closest point on the found proxy in world space. Undefined when the shapes overlap.

public JVector PointB

Field Value

JVector