Detecting if the person is touching the ground

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hoffhoff
Posts: 17
Joined: Fri Mar 10, 2006 11:55 am

Detecting if the person is touching the ground

Post by hoffhoff »

Hello,
i´ve created an IAnimatedMeshSceneNode* to point to my person and an ITerrainSceneNode* to point to the terrain.
I want to create a function that returns me if the person is touching the ground or if he´s jumping.

How is the easier way to do it?

Thanks!
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

Post by Rabid Mantis »

i havent had to do this myself yet but irrlicht has a collision manager, I think you can use it to test if the model is touching the ground. Maybe someone else can tell you more specifically how to do it.
hoffhoff
Posts: 17
Joined: Fri Mar 10, 2006 11:55 am

Post by hoffhoff »

yes, I have used that collision manager not to let the pergon go under the ground or thru the walls, but I don´t know how to use it to return me is that is a collision with the ground or not. I saw some collision examples at the "tutorials" but didn´t get what I want =~
hoffhoff
Posts: 17
Joined: Fri Mar 10, 2006 11:55 am

Post by hoffhoff »

Nevermind, I solved my problem =]]
thanks anyway!
Post Reply