Skip to content

The prototype of the real ship physics in Unity based on the voxel system.

License

Notifications You must be signed in to change notification settings

Tearth/Real-Ship-Physics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real Ship Physics

The prototype of the real ship physics in Unity based on the voxel system. Each ship contains a number of air areas, where every one of them generates a set of voxels. They calculate buoyancy, drag and gravity force (if flood level is greater than zero) and then this force is applied to the ship's rigid body.

This model has a few disadvantages like poor optimization and troubles when Unity has to deal with objects with high speed or small mass (because of physics accuracy). That's why it's only suitable for large ships, which are heavy and relatively slow.

Examples

Example1

The ship falls from a height of several meters and stabilizes on the water.

Example2

Green voxel indicates it generates a lot of buyoancy force (it becomes red if is half submerged or abouve surface).

Example3

Each one of the voxels calculates its own parameters which can be obtained in the inspector.

About

The prototype of the real ship physics in Unity based on the voxel system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published