Jump to content
  • Advertisement

Archived

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

JIMbond21

3D game question

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

In a 3d game how would I create some sort of tracing collision detection for like, shooting guns or weapons at objects. Please help I don''t know what to do, I apprecieate any help. THX, JAP

Share this post


Link to post
Share on other sites
Advertisement
You take the ray (in mathematic terms) that the bullet trace during the last virtual time increment (e.g. Quake runs with about 15 physics steps per second, and interpolates the graphics between physics updates) and perform collision detection againt the world with it (ultimately line-triangle intersection tests).

Making it fast means having a heirachical organization of the contents of the world, so large portions of the world can quickly be rejected as potential collisions. e.g. By using a sphere tree, oct-tree, BSP-tree, or combinations.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!