Using c_trace to determine the distance to the ground is a perfectly fine, working way to simulate gravity. Since the c_trace is stored in variable, "distance_to_ground," it should not be affected by a second c_trace. Just make sure the variable is a local variable and not a global variable!