Navigate to your build directory where the executables are located.
Run the main executable:
./black_hole
(On Windows, this might be .\Debug\black_hole.exe)
Run the 2D ray tracer:
./2D_lensing
| Action | Control | Description |
|---|---|---|
| Orbit | Left Mouse Button + Drag |
Rotate camera around the black hole. |
| Zoom In | Scroll Up |
Move closer to the black hole. |
| Zoom Out | Scroll Down |
Move further away. |
| Pan | Shift + Left Mouse (or Middle Mouse) |
Pan the camera view (note: camera attempts to stay centered on the black hole). |
| Key | Function | Description |
|---|---|---|
| G | Toggle Gravity | Turns N-body gravity on/off for orbiting objects (not the light rays, those are always affected). |
| Right Click | Hold for Gravity | Temporarily enable gravity while held. |