ODE: detect when airborne

Hi guys, I’m still a bit new to panda3D and ODE.

I’m using an ODE collisionEvent handler, and it works great. Is there any kind of attribute though that i can check periodically to determine when an object has no collisions? I need to be able to reset a few variables when the player is not in contact with the ground, and i can’t figure out how.

I’m sure i’m ovecomplicating it or missing something simple, but any help would be appreciated. :slight_smile:

Never mind, i fixed the issue by sending an event in the collision handler and accepting it to check for input. When collided, it’ll send the event, and i can check for the event in other parts of the code.

If there is another way of doing this though, let me know.