Enumeration Casemigueldeicaza.swiftgodot 0.45.0SwiftGodot
custom
In this mode, the body’s center of mass is set through centerOfMass
. Defaults to the body’s origin position.
case custom
Other cases
case auto
In this mode, the body’s center of mass is calculated automatically based on its shapes. This assumes that the shapes’ origins are also their center of mass.