I've not used physics behavior at all (forgive me). What I'm trying to do is create an object at top of screen... it naturally drops with physics behavior. If the play holds UP key, then it begins to slow... the aim is to land on the floor... if the speed is too great... die.
I've found an article on here
but I'm a tad confused.
I'm sure I could achieve this with Bullet (I think), but it might not be same.
You don't need physics, this can easily be done with Bullet behavior.
On collision with the ground check rocket bullet speed and if it's small enough, then it landed successfully.
I used Bullet, but took advance of its gravity.
Happy days ;)
but what about if it collides with a ground-sprite or solid?
currently, my object falls straight through :(
despite having Object collides with ground-sprite | object = speed = 0 / gravity = 0
On collision with ground you can check the bullet speed (to know if the ship landed or crashed), then disable Bullet behavior.
Develop games in your browser. Powerful, performant & highly capable.