Archived

This topic is now archived and is closed to further replies.

XakMan

Projectiles

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
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..;(

Share this post


Link to post
Share on other sites