Table of Contents

Struct DynamicTree.SweepCastResult

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Represents the result of a sweep against the dynamic tree.

public struct DynamicTree.SweepCastResult
Inherited Members

Fields

Entity

The proxy that was hit.

public IDynamicTreeProxy? Entity

Field Value

IDynamicTreeProxy

Lambda

The time of impact expressed in units of the sweep direction vector. Zero if the shapes already overlap.

public float Lambda

Field Value

float

Normal

The collision normal in world space, or Zero if the shapes already overlap. Do not use this to test whether a hit occurred.

public JVector Normal

Field Value

JVector

PointA

The collision point on the moving query shape in world space at the sweep origin. Undefined when the shapes already overlap.

public JVector PointA

Field Value

JVector

PointB

The collision point on the hit object in world space at the sweep origin. Undefined when the shapes already overlap.

public JVector PointB

Field Value

JVector