Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
OctreeNode Struct Reference

#include <Octree.h>

Collaboration diagram for OctreeNode:
[legend]

Public Member Functions

bool isLeaf () const
 

Data Fields

glm::vec3 center
 
float halfSize
 
NodeIndex children [8]
 
uint8_t childMask = 0
 
std::vector< Physics::PhysicsBody * > bodies
 
glm::vec3 massCenter
 
double totalMass = 0.0
 
double totalEffectiveArea = 0.0
 
double totalEmission = 0.0
 

Detailed Description

Definition at line 17 of file Octree.h.

Member Function Documentation

◆ isLeaf()

bool OctreeNode::isLeaf ( ) const
inline

Definition at line 34 of file Octree.h.

Here is the caller graph for this function:

Field Documentation

◆ bodies

std::vector<Physics::PhysicsBody*> OctreeNode::bodies

Definition at line 24 of file Octree.h.

◆ center

glm::vec3 OctreeNode::center

Definition at line 18 of file Octree.h.

◆ childMask

uint8_t OctreeNode::childMask = 0

Definition at line 21 of file Octree.h.

◆ children

NodeIndex OctreeNode::children[8]

Definition at line 20 of file Octree.h.

◆ halfSize

float OctreeNode::halfSize

Definition at line 19 of file Octree.h.

◆ massCenter

glm::vec3 OctreeNode::massCenter

Definition at line 27 of file Octree.h.

◆ totalEffectiveArea

double OctreeNode::totalEffectiveArea = 0.0

Definition at line 31 of file Octree.h.

◆ totalEmission

double OctreeNode::totalEmission = 0.0

Definition at line 32 of file Octree.h.

◆ totalMass

double OctreeNode::totalMass = 0.0

Definition at line 28 of file Octree.h.


The documentation for this struct was generated from the following file: