AGK for Pascal
TAgkSprite.PhysicsAngularImpulse Property

Similar to a torque force, but applied only once.

property PhysicsAngularImpulse: Single;

Whilst forces are applied continuously over time gradually influencing a sprite's velocity, an impulse simulates the sprite being hit suddenly and immediately changes the angular velocity with the equivalent power of a similar torque force applied for 1 second. 

If the sprite is constrained by surrounding objects it may not rotate unless the impulse is large enough to move those objects as well. 

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

Copyright (c) 2012. All rights reserved.