Skip to content

WaylandGod/Unity-Boat-physics-Tutorial

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

YouTube video showing the result:

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

About

Learn how to implement boat physics in Unity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 77.3%
  • ShaderLab 22.7%