OK, I've gotten as far as wireframe modeling with this tutorial, and now I want to turn it into a game. The problem is that I'm a little new to this whole matrix thing and I'm not really sure how to make a bullet move in a certain direction. If I was doing it in 2d I would do something like this:
but I'm not really sure how to do something like that in 3d. Does anyone know how I can adapt this matrix stuff for motion?Code:bullet.x += bullet.speed * cos(bullet.th); bullet.y += bullet.speed * sin(bullet.th);
also: I've attached what I've got so far (I added the keyboard stuff as an afterthought, it works best with a joystick), and if you need alleg40.dll you can get it here.