Hi, I'd consider myself a newbie to DarkBasic, and right now I'm working on mostly a test project (no models, just cubes and squares and stuff, just to learn and make my first relatively advanced game as opposed to the little tests I did before). It works on a vector system, (as in, with inertia, and when you move you're controlling acceleration, not actual movement), and I'm glad my trigonometry skills finally have come in handy
. So yeah, it's a 3-d game, and I want to add a height dimension to it.
The problem is, though, that I don't know how to make it so that, depending on the slope of section of the matrix you are on currently, gravity is either with you or against you as you try to go up or down a slope, and in both x and z dimensions. Is there a function or something I could use to determine matrix slope at a particular point? I can try to figure out the rest from there, once I know how to get the actual value, even though it's kind of like one big math problem
. But I really don't know how to get that value at all.
Thanks, if you could help. I like to work out programming stuff myself just for the challenge and learning, but in cases like this, I really need some guidance.