ueshita / godot-floatable-body

A simple physics system where objects float on a fluid, for Godot Engine 4.
https://godotengine.org/asset-library/asset/2345
MIT License
35 stars 4 forks source link

Convert density value to SI system #2

Open Miner34dev opened 3 weeks ago

Miner34dev commented 3 weeks ago

The density is 100 by default. 100 what? Clearly it isn't correct for water as a 1 m³ box stops floating at around 12 kg. Wouldn't it be good to have default density at 1 kg/dm³ so that the default box can't float if it's heavier than 1000 kg? That would make it way easier for anyone using this addon to set the density and object mass.

ueshita commented 3 weeks ago

You are right that the default value for Density is 100, which is strange. I think it is nice and simple that the default value is 1.0. Also, there were various errors in the buoyancy process. I will make various corrections from now on.