Game Development Community

Determining...

by Justin DuJardin · in Torque Game Engine · 05/30/2002 (12:24 am) · 1 replies

...if a player is touching the ground. Basically I want to know the player's touching the ground.. and add an onGroundImpact event. Any ideas? Is there anything in the engine i could refer to rather than writing a whole new chunk of code?

TIA,

Justin DuJardin

#1
05/30/2002 (2:32 am)
Take a look at player.cc - not only it detects if he touches the ground, it also detects what type of ground it is, plays the correct sound, draws the footpuffs, etc. - should be more than you need...