All Projects → dbrizov → Naughtywaterbuoyancy

dbrizov / Naughtywaterbuoyancy

Licence: mit
Water Buoyancy Simulation for Unity

Projects that are alternatives of or similar to Naughtywaterbuoyancy

Liquidsimulator
Cellular Automaton 2D Liquid Simulator for Unity
Stars: ✭ 302 (-44.07%)
Mutual labels:  unity3d, simulation
Ocean community next gen
Next gen iteration of the unity community ocean shader
Stars: ✭ 855 (+58.33%)
Mutual labels:  unity3d, simulation
Unity Build
A powerful automation tool for quickly and easily generating builds of a game with Unity.
Stars: ✭ 483 (-10.56%)
Mutual labels:  unity3d
Renode
Renode - Antmicro's virtual development framework for complex embedded systems
Stars: ✭ 525 (-2.78%)
Mutual labels:  simulation
Unity Frosted Glass
❄️ Test of a frosted glass material in Unity.
Stars: ✭ 506 (-6.3%)
Mutual labels:  unity3d
Randomation Vehicle Physics
Vehicle physics system for the Unity engine.
Stars: ✭ 487 (-9.81%)
Mutual labels:  unity3d
Space Nerds In Space
Multi-player spaceship bridge simulator. Captain your starship through adventures with your friends. See https://smcameron.github.io/space-nerds-in-space
Stars: ✭ 516 (-4.44%)
Mutual labels:  simulation
Awesome Robotics
A curated list of awesome links and software libraries that are useful for robots.
Stars: ✭ 478 (-11.48%)
Mutual labels:  simulation
Texturepanner
This repository hosts a shader for Unity3D whose main goal is to facilitate the creation of neon-like signs, conveyor belts and basically whatever based on scrolling textures
Stars: ✭ 528 (-2.22%)
Mutual labels:  unity3d
Openloco
An open source re-implementation of Chris Sawyer's Locomotion
Stars: ✭ 504 (-6.67%)
Mutual labels:  simulation
Fontainebleaudemo
Fontainebleau demo
Stars: ✭ 524 (-2.96%)
Mutual labels:  unity3d
Consolation
In-game debug console for Unity.
Stars: ✭ 489 (-9.44%)
Mutual labels:  unity3d
Firefly
Unity ECS example for special effects
Stars: ✭ 489 (-9.44%)
Mutual labels:  unity3d
Unity3d Rainbow Folders
This asset allows you to set custom icons for any folder in unity project browser.
Stars: ✭ 519 (-3.89%)
Mutual labels:  unity3d
Kinomotion
Motion blur post-processing effect for Unity
Stars: ✭ 484 (-10.37%)
Mutual labels:  unity3d
Unity Shadergraph Sandbox
✏️ Collection of ShaderGraph examples for Unity.
Stars: ✭ 525 (-2.78%)
Mutual labels:  unity3d
Yasio
A multi-platform support c++11 library with focus on asio (asynchronous socket I/O) for any client application.
Stars: ✭ 483 (-10.56%)
Mutual labels:  unity3d
Neurokernel
Neurokernel Project
Stars: ✭ 491 (-9.07%)
Mutual labels:  simulation
Airtest
UI Automation Framework for Games and Apps
Stars: ✭ 5,733 (+961.67%)
Mutual labels:  unity3d
Unitypcss
Nvidia's PCSS soft shadow algorithm implemented in Unity
Stars: ✭ 533 (-1.3%)
Mutual labels:  unity3d

NaughtyWaterBuoyancy

Water Buoyancy Simulation for Unity Engine

gif gif screenshot

System Requirements

Unity 2018.3.0 or later versions. Feel free to try older version

How To Setup

You can use the ready to go prefabs (WaterPro_DayTime and WaterPro_NightTime).
They are both located in the Prefabs folder. The only difference between the two is that they use different shaders for daylight and moonlight.

The two important scripts are WaterVolume.cs and FloatingObject.cs.
The water volume applies buoyancy forces only to floating objects. The water volume needs to have a tag Water Volume in order for the floating objects to detect collisions with the water. The floating is just like in real life physics. If an object has density lesser than the density of the water, it will float. If an object has greater density than that of the water, it will sink. If for example an object has density equal to half the density of the water, then the object will submerge exactly half of its volume. The other half of the volume will be above the water. For more info see this Buoyancy Reference

The WaterVolume.cs script works only with the procedural Mesh in the project due to performance optimizations.

License

The MIT License (MIT)

Copyright (c) 2015 Denis Rizov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].