$darkmode
A single gravitational body. More...
#include <nbody.h>
Data Fields | |
| double | position [3] |
| double | mass |
| double | velocity [3] |
| float | radius |
| vec3 | albedo |
| float | metallic |
| float | roughness |
| double | prev_position [3] |
A single gravitational body.
| vec3 NBodyParticle::albedo |
PBR base color for this body.
| double NBodyParticle::mass |
Gravitational mass.
| float NBodyParticle::metallic |
PBR metallic factor.
| double NBodyParticle::position[3] |
World position.
| double NBodyParticle::prev_position[3] |
Position from previous frame (motion blur).
| float NBodyParticle::radius |
Visual sphere radius (for rendering scale).
| float NBodyParticle::roughness |
PBR roughness factor.
| double NBodyParticle::velocity[3] |
Current velocity.