Projectiles

Started by
1 comment, last by XakMan 22 years, 5 months ago
I have a opengl world going and am able to move through it using the matrix and quat. but if i fire a prjectile it goes off all messed up(dosent move strait). Can anyone help me with this?
Xak1234
Advertisement
basically you need the same orientation for the projectile as for your player,camera, whatever.. just translate the z-position in the projectile-matrix so it moves straight forward from your view
I Cant just move on the Z because my world rotates around me when i move(the world moves and i dont) so the projectile will have to rotate too, and iv tried to apply my world rotations to a projectile with no luck..;(

This topic is closed to new replies.

Advertisement