Jump to content
  • Advertisement
Sign in to follow this  
zon7

Problem making Space Sim

This topic is 4837 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!