dorkhub

Unity-Boat-physics-Tutorial

Learn how to implement boat physics in Unity

Habrador
C#12637 forksMITupdated 4 years ago
visit the demogit clone https://github.com/Habrador/Unity-Boat-physics-Tutorial.gitHabrador/Unity-Boat-physics-Tutorial

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

more like this

bit_gossip

Pathfinding library for calculating all node pairs' shortest paths in an unweighted undirected graph.

Rust50

BubbleML

A multiphase multiphysics dataset and benchmarks for scientific machine learning

Python50

SimGAN

Pytorch Implementation of SimGAN: Hybrid Simulator Identification for Domain Adaptation via Adversarial Reinforcement L…

Python50

search

search projects, people, and tags