SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::Physics::TreeNode Struct Reference

#include <DynamicAABBTree.hpp>

Public Member Functions

bool IsLeaf () const

Public Attributes

AABB fatAABB
int height = 0
int left = NULL_NODE
int parent = NULL_NODE
int right = NULL_NODE
void * userData = nullptr

Detailed Description

One node of the DynamicAABBTree, either an internal node or a leaf holding a proxy's fattened AABB.

Definition at line 16 of file DynamicAABBTree.hpp.

Member Function Documentation

◆ IsLeaf()

bool Sleak::Physics::TreeNode::IsLeaf ( ) const
inline

Definition at line 24 of file DynamicAABBTree.hpp.

Member Data Documentation

◆ fatAABB

AABB Sleak::Physics::TreeNode::fatAABB

Definition at line 17 of file DynamicAABBTree.hpp.

◆ height

int Sleak::Physics::TreeNode::height = 0

Definition at line 22 of file DynamicAABBTree.hpp.

◆ left

int Sleak::Physics::TreeNode::left = NULL_NODE

Definition at line 20 of file DynamicAABBTree.hpp.

◆ parent

int Sleak::Physics::TreeNode::parent = NULL_NODE

Definition at line 19 of file DynamicAABBTree.hpp.

◆ right

int Sleak::Physics::TreeNode::right = NULL_NODE

Definition at line 21 of file DynamicAABBTree.hpp.

◆ userData

void* Sleak::Physics::TreeNode::userData = nullptr

Definition at line 18 of file DynamicAABBTree.hpp.