Table of Contents

Struct DynamicTree.Node

Namespace
Jitter2.Collision
Assembly
Jitter2.dll

Represents a node in the AABB tree.

public struct DynamicTree.Node
Inherited Members

Fields

ExpandedBox

The expanded bounding box of this node, used for broadphase culling. For leaf nodes, this is the proxy's bounding box expanded by velocity and a margin. For internal nodes, this is the union of its children's boxes.

public TreeBox ExpandedBox

Field Value

TreeBox

ForceUpdate

When set, forces the node to be updated in the next Update(bool, float) call, even if its bounding box hasn't changed.

public bool ForceUpdate

Field Value

bool

Left

Index of the left child node, or NullNode if this is a leaf.

public int Left

Field Value

int

Parent

Index of the parent node, or NullNode if this is the root.

public int Parent

Field Value

int

Proxy

The proxy associated with this node, or null for internal nodes.

public IDynamicTreeProxy? Proxy

Field Value

IDynamicTreeProxy

Right

Index of the right child node, or NullNode if this is a leaf.

public int Right

Field Value

int

Properties

IsLeaf

Returns true if this is a leaf node (has an associated proxy).

public readonly bool IsLeaf { get; }

Property Value

bool