Check If Velocity is less than
themagicbox
Member, PRO Posts: 82
How do i check if an actors velocity is less than a certain amount, do a rule...
Comments
Rule:
When attribute self.Motion.Linear Velocity X (or Y) .....
You can also put in a condition for the Angular Velocity.
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Constrain speed = magnitude(linearVelX, linearVelY)
Rule: speed < minimum
- do stuff
You can do this without a constraint like this:
Define game.ZERO = 0
Rule game.ZERO < minimumSpeed - magnitude(linearVelX, linearVelY)
- do stuff