top of page
Buoyant Script
Buoyant script is a relatively simple, and very cheap (both in price and performance-wise!) C# based buoyancy script utilizing Unity3D's physics engine and capabilities to give physics-enabled objects buyoancy, or in case of heavier objects, relatively realistic water resistances.
Feature shortlist:
-
Simple basic implementation with the possibility of more advanced settings and tweaking
-
Comprehensive documentation, thoroughly commented code and custom editor script with built-in hideable instructions
-
Capable of floating even complex shapes semi-realistically
-
Ability to support multiple levels of water, not just one!
-
Support for simple, "base-level" water, for scenes where there's always water at a set height.
-
Ability to shift object's center of mass on runtime to make modifications on how it floats, how stable it is, and more!
-
Built-in performance vs. accuracy variables for buoyancy simulation
-
Ability to set objects to have different physical drag and angular drag when they're in water, and out of it
-
Performance-cheap wave simulation without 3D water
-
Toggleable sinking/unstable-states for objects! (Can be modified to support damage systems et.c.)
-
Support for 3D waters that report wave heights, such as Unity Community Ocean! (Only requires uncommenting relevant code, and modifying if necessary)
-
Completely modifiable code for implementing/changing features of the script!
-
Works with Unity Free version
bottom of page