Skip to content

This is a very simple buoyancy script that you can add to objects that need floating.

Notifications You must be signed in to change notification settings

vincentaber/Basic-Buoyancy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Basic-Buoyancy

This is a very simple buoyancy script that you can add to objects that need floating.

Add this script to your floating objects, along with a rigidbody and a collider.

Add a series of floaters (empty gameobjects, children of your main mesh that are placed at strategic points) or simply use the object's own transform for simpler meshes.

Play with the different variables until you find values that work for your context. Enjoy !

Limitation : this only works for a flat body of water, but it should be pretty easy to implement with a wavy sea (I added a few comments in the script that might help)

About

This is a very simple buoyancy script that you can add to objects that need floating.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages