Page 1 of 1

Detecting if the person is touching the ground

Posted: Mon Mar 20, 2006 12:50 pm
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!

Posted: Mon Mar 20, 2006 1:34 pm
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.

Posted: Mon Mar 20, 2006 2:10 pm
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 =~

Posted: Mon Mar 20, 2006 2:46 pm
by hoffhoff
Nevermind, I solved my problem =]]
thanks anyway!