floor = c_trace(my.x, temp.x, IGNORE_ME | IGNORE_PASSABLE | USE_BOX | GLIDE); // compute the distance between player's origin and the floor below its feet
if im correct here glide is not a mode flag for c_trace
each mode flag has a value and your giving a value
that should not be used with c_trace ,it might aswell
have the same value as another mode flag like ignore_world
and then c_trace wont work...(not sure)
if floor<=0 then no polygon's hit!
try: floor = c_trace(my.x, temp.x, IGNORE_ME | IGNORE_PASSABLE | USE_BOX );