FlyDangerous
                                
                                 FlyDangerous copied to clipboard
                                
                                    FlyDangerous copied to clipboard
                            
                            
                            
                        Proximity sensor
Similar to Elite / other space games, some indication of a collision course, a warning getting more pronounced the closer to collision the ship is.
- Spherical collision detection - just generally how close to geometry the ship is and should trigger within a very narrow distance (say, 20m - but experiment with it)
- A re-utilisation of the same code used for the checkpoint collision detection (a box cast in the direction of the current vector and length contingent on velocity) but elongated to a much larger degree (say, 100x but again, experiment) and specifically masked to not include checkpoint overlay (the blue bit) or other players.
- A flashing red cockpit light and some sort of warning sound, varying both light intensity and audio volume on closeness to collision
- Add an interpolation to a target warning intensity such that near-misses don't make for a loud, obnoxious alarm but rather gradually fades in a little bit then goes away again
Ideally about 2 seconds of time before impact when the effect starts to come into effect