I want to have my character interact with the physics world I've set up. I thought at first I might create a dynamic body and put it to sleep, waking it up to jump and when there isn't anything beneath its feet. I'm wondering if I can turn collisions/gravity on and off for a body? Then I thought I might use a static body and just move it around, matching the gravity I set up for the system. This doesn't seem to work, and I think its probably because you can't move static bodies?
So, how should I do this? I'm not going to have it stand on another body; I'm going to detect the collision with the ground myself and tell the body to stop moving immediately. How can I go about this?
So, how should I do this? I'm not going to have it stand on another body; I'm going to detect the collision with the ground myself and tell the body to stop moving immediately. How can I go about this?