Hi, i would like to try and determine when an object (in this case a ball) has come to a halt.
The ball has physics behaviors attached to it and when it stops i need to be able to determine if it has stopped in the right place.
Any ideas would be extremely helpful, thank you
In a game I'm working on, I needed to do the same thing. This is the formula I used to determine the speed of a physics object:
sqrt(Object.Physics.VelocityX ^ 2 + Object.Physics.VelocityY ^ 2)
Where Object is the name of the object. I put this in a System: compare two values event.
Develop games in your browser. Powerful, performant & highly capable.
wow that's awesome, thanks for the help!