$darkmode
Suckless OGL 1.0.0
A lean, high-performance C11 PBR Renderer
NBodyImpact Struct Reference

Records a confinement boundary hit for visual effects. More...

#include <nbody.h>

Data Fields

vec3 position
 
vec3 color
 
float velocity
 
bool active
 

Detailed Description

Records a confinement boundary hit for visual effects.

One slot per body (indexed by body index). Across the multiple integration sub-steps of a single frame, only the strongest outward velocity is kept — this naturally deduplicates.

Field Documentation

◆ active

bool NBodyImpact::active

True if body hit the boundary this frame.

◆ color

vec3 NBodyImpact::color

Body albedo at impact.

◆ position

vec3 NBodyImpact::position

World position of impact.

◆ velocity

float NBodyImpact::velocity

Peak outward radial speed this frame.


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