AGK for Pascal
TAgkSprite.PhysicsTorque Property

Applies a torque to the rotation of the sprite, similar to applying a force to its movement.

property PhysicsTorque: Single;

If the sprite is constrained by surrounding objects it may not rotate unless the torque is large enough to move those objects as well. The torque will last for this frame only, to continue applying this torue you must setting this property. 

The reaction to a torque force is relative to the object's size, large objects will rotate slower than small objects given the same torque.

Copyright (c) 2012. All rights reserved.