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: 5 days ago
JSON representation
Learn how to implement boat physics in Unity
- Host: GitHub
- URL: https://github.com/habrador/unity-boat-physics-tutorial
- Owner: Habrador
- License: mit
- Created: 2020-02-15T13:29:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-31T09:31:59.000Z (almost 3 years ago)
- Last Synced: 2024-08-03T05:15:02.132Z (3 months ago)
- Topics: boat, boat-dynamics, boat-simulation, boats, game-development, gamedev, physics, physics-simulation, tutorial, unity, unity-library, unity-tutorial, unity3d, unity3d-tutorial
- Language: C#
- Homepage: https://www.habrador.com/tutorials/unity-boat-tutorial/
- Size: 6.15 MB
- Stars: 96
- Watchers: 4
- Forks: 35
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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