Code for my 3d game boat physics post which deals most importantly with buoyancy. Here 4 main forces are discussed: thrust, drag, buoyancy & gravity. Right now, it is simple, but in future, I'll extend it & add volume calculation for complex 3D geometry. Right now, the first version of post is published.