Reduces the velocity of an actor over time, simulating the effect of friction or air resistance.
This function applies the linear and angular damping values set with the SetActorDamping() function.
init_damping = False
SetActorDamping(actor, 0.1, 0.5)
ApplyActorCentralImpulse(actor, 300, 0, 0)
While True
If Not init_damping Then
ApplyActorDamping(actor, 5.0) 'Will apply the damping effect for 5 seconds
init_damping = True
End If
Update()
Wend
Related: setActorDamping getActorLinearDamping getActorAngularDamping