Archived

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

Projectiles

This topic is 5888 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 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