Sign in to follow this  
zon7

Problem making Space Sim

Recommended Posts

zon7    122
I'm writing a 3d space game. For the movement i'm using 4x4 matrix that i use with glMultMat. I rotate in the z axis with left & right and x axis with up and down Moving my main craft has been not a problem, the problem comes when I try to make an enemy that follows me. I've tried lot of ways, but when it worked in one axis it failed in the other. ¿Does anyone know a good way for doing it or somewhere to look for code help? Thanks If you need me to post some code tell me. --------------------------- http://perso.wanadoo.es/zon7/Proyecto.rar I have uploaded a version so you can see where is the problem. In that case there are two ships. One is the one you control and the other is te "enemy". Enemy only will look where you are, no movement, only rotation. With a and z control velocity. As you will see, in the front part of the enemy everything is ok, but when you go rear all goes crazy. Thanks for your help

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this