hi
I’m making a game where the area contains 3 dimensions. A ball can move left and right (x axis), bounce in the air (y axis) and up and down (z axis), like in a 2d scrolling game. Imagine a fighting game like street fighters, but the ppl can move up and down too.
the problem is that I have no idea how to simulate the z axis. For example, I have two balls, initially at the same position, that move to the right with an angle of 20 degree between them (on the z axis. So in a normal perspective the balls are still sticking on the ground but in a flash simulation we see that one ball is going up and one ball is going down).
if it were just a simple simulation I could go lazy and directly change the x and y axis to create the same effect, but in this project I need to know a way (maybe a formula) to actually control the z axis and to adjust the balls’ y position according to it. Any help?
Thanks.