Is there a way to ensure that a body's centroid is the same as the center of mass? To calculate the center of mass you need to add shapes to the body, but to add shapes you need to know the centroid!
In my game, players can create boxes/circles of arbitrary size and position, then link them together with welds (this merges them into one body.), so doing it manually is not an option.
Thanks!
In my game, players can create boxes/circles of arbitrary size and position, then link them together with welds (this merges them into one body.), so doing it manually is not an option.
Thanks!