Recalculates the center of mass (COM) based on the shapes attached to the sprite, if you have overriden the COM this will set it back to a location decided by the AGK.
procedure CalculatePhysicsCenterOfMass;
If the COM is very different from the offset point the sprite may seem unstable as it will behave like an unbalanced spinning top.
Copyright (c) 2012. All rights reserved.
|