Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/Habrador/Unity-Boat-physics-Tutorial

Learn how to implement boat physics in Unity
https://github.com/Habrador/Unity-Boat-physics-Tutorial

boat boat-dynamics boat-simulation boats game-development gamedev physics physics-simulation tutorial unity unity-library unity-tutorial unity3d unity3d-tutorial

Last synced: 3 months ago
JSON representation

Learn how to implement boat physics in Unity

Lists

README

        

# Unity Boat physics Tutorial

Learn how to make a realistic boat in Unity with the physics equations used by actual boats. The main inspiration comes from this article:

* [Water interaction model for boats in video games](https://www.gamedeveloper.com/programming/water-interaction-model-for-boats-in-video-games)

YouTube video showing the result:

[![Boat physics in Unity video](http://img.youtube.com/vi/6Ec-gxpC-Ik/0.jpg)](http://www.youtube.com/watch?v=6Ec-gxpC-Ik "Boat physics in Unity video")

Link to tutorial: https://www.habrador.com/tutorials/unity-boat-tutorial/

Notice that the code here hasn't exactly the same code structure as in the tutorial. I'm still not happy with the water surface and will update with a better version in the future.

## FAQ

* **Why is my boat launching into the sky when it hits the water?** The most likely solution to this problem is that the collider attached to the boat has to be set to convex! This by the way always true when you attach a collider to a rigibody.

## Socials

Follow me on Twitter for more Unity stuff: https://twitter.com/eriknordeus