measuring velocity for specific length of time
Hi there
i have a ball where i keep track of the velocity, when velocity drops below or is equal to 1 i destroy it.
however sometimes it destroys to soon like when the ball changes direction to abrupt.
is there a way to say if velocity is equal to lower then 1 for 4 seconds then destroy?
thanks!
i have a ball where i keep track of the velocity, when velocity drops below or is equal to 1 i destroy it.
however sometimes it destroys to soon like when the ball changes direction to abrupt.
is there a way to say if velocity is equal to lower then 1 for 4 seconds then destroy?
thanks!
Comments
wrap your destroy rule in a timer :
After 1 sec (DO NOT CHECK RUN TO COMPLETION)
Destroy .
This will tell the rule that if the condition is "flagged on" for a full second , then destroy the actor.
EDIT:
I just saw you said your rule is below or equal to 1 ,
if you want your actor to be destroyed when its "not moving" you should not forget about negative velocity! so thats mean , in your case the rule should say :
If velocity is below 1 AND grater than (-1) !
Roy.