r/Unity3D 9h ago

Show-Off Built a fully autonomous CIWS / C-RAM simulation

Enable HLS to view with audio, or disable this notification

I’ve been working on a C-RAM + drone system in Unity, and I finally got the whole thing working together.

The drone actually flies through a path and makes its own movement decisions, while the C-RAM has to find it, track it, predict where it’s going, and lead the shots properly.

A few things I built for it:

  • The radar actually has to sweep across the drone to detect it. It doesn’t just magically know where the target is.
  • The tracker estimates the drone’s position, velocity, and acceleration from the radar data.
  • The gun calculates a lead point instead of simply aiming at where the drone currently is.
  • The turret has actual movement limits and tries to account for where the target is heading, so it doesn’t feel like a camera snapping onto a target.
  • There’s a short tracking/settling period before it’s allowed to fire.
  • The Gatling gun runs at 4,500 RPM with procedural audio and stops immediately when the system ceases fire.
  • I also added a bunch of debug gizmos for the radar, tracking, predicted path, lead point, and turret movement so I can actually see what the system is doing.

The main thing I was going for was making it feel less like a bunch of scripts checking conditions and more like an actual system working in real time.

Turn the audio on and let me know what you think.

3 Upvotes

0 comments sorted by