Alright, sorry for asking so many dumb questions, or questions that may seem dumb, whatever.
So I have collision fully working, and my idea for gravity was to constantly check for collision with the map, move the player down at an increasing rate, and if the player did collide with the map, stop them.
Unfortunately my little idea didn't work.
Here's the function I called :
void GravityFunc()
{
Gravity = 9.8;
if (Collide != 3)
{
dbPositionObject (1, PlrX, PlrY - Gravity, PlrZ);
Gravity += .1;
}
}
To be blunt: It doesn't work. I do fall at an increasing rate, but I go right through the floor. Without gravity, I can just fly down, hit the ground and not go through.
I also displayed "Collide" during the whole program, and when I hit the ground, it was still 0.
Any ideas?
Thanks.