I am trying to simulate an object falling according to gravity. I have most of the simulation working, using Box2D, Bullet, etc. My problem is I want to incorporate all relevant laws of physics and there’s one I cannot find any code for. Say a character goes over the edge of something (a table top or a cliff) it’s well known (O’Donnell et al) that the descent does not start until the character looks down. So, in pseudo code I have something like:
suspend in air while looking down == NOT
on lookDown then fall
Is there any code for this?