$darkmode
Records a confinement boundary hit for visual effects. More...
#include <nbody.h>
Data Fields | |
| vec3 | position |
| vec3 | color |
| float | velocity |
| bool | active |
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.
| bool NBodyImpact::active |
True if body hit the boundary this frame.
| vec3 NBodyImpact::color |
Body albedo at impact.
| vec3 NBodyImpact::position |
World position of impact.
| float NBodyImpact::velocity |
Peak outward radial speed this frame.