SetSpritePhysicsDamping

Description

Sets some damping on the sprite's linear movement which may simulate something like wind resistance.

A value of 0 represents no damping, a value of 0.75 would reduce the velocity vector by half every second when running at 60 frames per second. Higher values will reduce the speed more quickly.

Definition

SetSpritePhysicsDamping( iSpriteIndex, damp )

Parameters