How stormrider31/storm-breakers works
Storm Breakers is a Unity ocean-simulation package. In a typical runtime, scene components configure the shared wave and wind state; boats and water-aware objects query that state for motion and buoyancy, while rendering and effect components present the water, breaking waves, splashes, and underwater view. The repository also includes camera and gameplay examples, reusable prefabs, and sample scenes. Edges are limited to relationships visible in excerpts, the source index, or README; unsampled feature modules are included without guessed connections.
Main entry points: Ocean.cs Wave State · DetectWater.cs Water Detection · WindController.cs Wind Control · BoatController.cs Boat Control
Components 22
Ocean Simulation
- Wave State
3-Scripts/Ocean.cs - Ocean Setup
3-Scripts/OceanController.cs - Wind Control
3-Scripts/WindController.cs - Ocean Bounds
3-Scripts/AjustOceanBounds.cs
Vessels & Buoyancy
- Boat Control
3-Scripts/BoatController.cs - Foil Physics
3-Scripts/Foil.cs - Hull Generator
3-Scripts/HullGenerator.cs - Static Buoyancy
3-Scripts/StaticBuoyancy.cs - Water Interaction
3-Scripts/WaterInteraction.cs - Sphere Interaction
3-Scripts/SphereWaterInteraction.cs
Water Effects & Rendering
- Water Detection
3-Scripts/DetectWater.cs - Water Effects
3-Scripts/WaterEffects.cs - Breaker Audio
3-Scripts/BreakersAudio.cs - Underwater View
3-Scripts/UnderwaterEffect.cs - Ocean Rendering
7-Shaders/ocean.shadergraph - Ocean Particles
8-VFX/oceanVFX.vfx
Scene & Gameplay
- Camera Control
3-Scripts/CameraController.cs - Camera Anchor
3-Scripts/CameraAnchor.cs - Reflection Probe
3-Scripts/ReflectionProbeController.cs - Camera Travel
3-Scripts/Examples scripts/CameraTravel.cs - Mass Increase
3-Scripts/Examples scripts/MassIncrease.cs
Other components
- Unity User
Connections 15
- Ocean Setup → Wave State: initializes waves
3-Scripts/OceanController.cs - Ocean Setup → Wind Control: configures
3-Scripts/OceanController.cs - Boat Control → Wave State: queries waves
3-Scripts/BoatController.cs - Water Detection → Wave State: queries height
3-Scripts/DetectWater.cs - Wind Control → Wave State: sets wind
3-Scripts/WindController.cs - Wind Control → Water Detection: reads underwater state
3-Scripts/WindController.cs - Water Effects → Wave State: queries waves
3-Scripts/WaterEffects.cs - Underwater View → Water Detection: reads depth
3-Scripts/UnderwaterEffect.cs - Underwater View → Wave State: sets water state
3-Scripts/UnderwaterEffect.cs - Camera Control → Water Detection: reads state
3-Scripts/CameraController.cs - Reflection Probe → Wave State: reads surface intensity
3-Scripts/ReflectionProbeController.cs - Static Buoyancy → Wave State: queries waves
3-Scripts/StaticBuoyancy.cs - Camera Travel → Boat Control: controls pilot
3-Scripts/Examples scripts/CameraTravel.cs - Camera Travel → Camera Anchor: moves anchor
3-Scripts/Examples scripts/CameraTravel.cs - Mass Increase → Boat Control: disables controller
3-Scripts/Examples scripts/MassIncrease.cs