# Hulls and COB calculation

This topic is 2638 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have some questions on calculating COB for a mesh. Assume that the hull density is non uniform. Knowing the total mass of the hull, how can I calculate COB?

My instincts tell me that I will need to integrate the volume starting from the lowest part of the keel up, along the +y axis, until I arrive at d for a plane p(<0,1,0.>,d) where the volume of the hull below p * density of water = mass of hull. If so than the centroid of that mesh should be the COB. I'm also aware that it should be possible to use some sort of binary subdivision to speed this up.

Am I on the right track.

@Mods Sorry for the double post, firefox glitched, feel free to remove

• ### What is your GameDev Story?

In 2019 we are celebrating 20 years of GameDev.net! Share your GameDev Story with us.

• 10
• 11
• 13
• 9
• 11
• ### Forum Statistics

• Total Topics
634088
• Total Posts
3015449
×