Jump to content
  • Advertisement

Archived

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

Moh_Abed

implement shooting and weapons

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

how could i implement shooting in my game? about detecting shooting i think you cast a ray to the target and check for collision. but i mean how could i represent the shooting graphics - bullets - should i make a mesh of a bullet and animate it very quickly?

Share this post


Link to post
Share on other sites
Advertisement
If it''s a machine gun or something, don''t bother. Just cast a ray to find the first collision and spawn sparks there (or whatever you''re using where the bullet hits).

If it''s a really big rocket or something, then yes, a small, quickly animated mesh would be cool.

Share this post


Link to post
Share on other sites

  • 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!