AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkSprite.CalculatePhysicsCenterOfMass Method

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.

Syntax
Pascal
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.