Is player in the air
by University of Gotland (#0009) · in Torque Game Engine · 04/04/2006 (4:08 am) · 2 replies
Hi, how would I go about to found out if the player is currently in the air.
by University of Gotland (#0009) · in Torque Game Engine · 04/04/2006 (4:08 am) · 2 replies
Torque Owner Tim Heldna
Some areas inside player.cc of interest
line 67
line 1646
// If we are not touching anything and have sufficient -z vel, // we are falling. if (runSurface) mFalling = false; else { VectorF vel; mWorldToObj.mulV(mVelocity,&vel); mFalling = vel.z < sFallingThreshold; }...and so on