I am working on a game, and I have made a terrain on blender that is a bumby landscape with tunnels going into the earth and into a secret place under the earth.
I have been trying to make gravity, but I have some problems. I know how to make gravity on a flat environment, just by saying that if the object touches the ground, don't use gravity, and if not, make object go down 1.0f.
The problem with that is- if I want to go up hill, I can't because I am using SC_Collision so that I can't go through the walls in the inside of the caves.
Does anyone have a code snippet of gravity that works with going up hill and downhill? The jumping function will be easy after that, just I need the code snippet.
Or anyother gravity code snippets that work. They would be helpful because then I can see where I am coming from, right now I am lost.
I am also hoping to make something like sparky's collision, except with gravity.
Any information about how to make gravity would be GREATLY appreciated.
Thanks!
Global Warfare