Hi, I am trying to throw a ball up in specific position and then make the fall down, I tried doing this by using:
apply impulse toward position(up)and
wait 2 seconds
apply impulse toward position(down)
it works good but the problem is the ball keeps going down and I want to end the ball to go down if it hit another object, how I can do this ?
any help will be appreciated.
Develop games in your browser. Powerful, performant & highly capable.
Why don't you use gravity? With gravity it will look much more natural.
This can also be done with Bullet behavior, it also has gravity setting.
You can slow down or stop the ball when it collides with the floor. For example:
Ball on collision with Floor -> Ball set Bullet speed to (Ball.Bullet.Speed/2)