My Gravity no longer seems to be working again... I got this snippet from the manual;
// code that pulls entity to the ground.
void handleGrav(ENTITY* tempChar, var smoothSpeed) {
my = tempChar;
// determine the ground distance by a downwards trace
VECTOR vFeet;
vec_for_min(vFeet, my); // vFeet.z = distance between player origin and lowest player vertex
var tracePos = c_trace(my.x, vector(my.x, my.y, my.z - 500), IGNORE_ME | IGNORE_PASSABLE | IGNORE_PUSH | USE_BOX);
my.z += ((target.z - vFeet.z) - my.z) / smoothSpeed; // smoothly updates new Z position
}
in A7.80 the entity was placed correctly on geometry.
no code changed, but update to 7.82.3; the entity is stuck in geometry from it's origin and also occasionally seems to "hop" up and down.
I really need this, as i'm entering the contest; any idea's to this issue?
regards,