I am using the the information supplied by NetResearchMan in this thread: http://social.msdn.microsoft.com/Forums/en-US/smallbasic/thread/2bfaa80d-91db-4df7-aa2f-413e1e6a9f30
Here is the program I am still testing fluid 3D simple wire-frame animation XFH167 (On-line listing: http://smallbasic.com/program/?XFH167
When you run the program, you see a box in the middle of the maze view frame (on the right).
Think of this box, or square, as a wall.
The wall moves correctly when strafing left/right or moving forward/back.
But when you turn (using the A to turn left and the D to turn right) it kind-of starts off moving the right way, but when you get too far, the wall gets stretched out on the X axis.
Also, when you try to turn the oposite direction, the wall does not revert back along the progression it made to get to it's current state - it, at first, keeps going and then kind-of tries to go back.
I have played with the CamerAngle amount to increase/decrease.
...beyond that, I am not sure what to do.
I was thinking that maybe the xtmp and ztmp was only supposed to be used temporarily and the increased/decreased camera angle would be the only changed variable that would move the box properly, but then ztmp would have no affect on anything, so you have to have (from my program) left_X = x1tmp and z1 = z1tmp.
You might find my use of variables a little strange, in reference to the square's X/Y coordinates.
I figure that since the camera will not be going up and down the Y axis (for now anyway) the top-left corner's X is always going to be equal to the bottom-left corner's X and the same for the top and bottom right's X.
...but the Y's will be different, so I had to have 4 seperate Y's.
I have looked up many different 3D drawing instructions, specifically for Basic (but even more specific for Qbasic) and the instructions seem to get mired in the details of the math.
Admitedly math is my weakness.
I would like to just have the math/code and tell me what variables to change to make it do what.
Once I have the math working right, I should be able to rotate my square so that is looks like part of the wall on either the left or right side of the hallway.