3D game question

Started by
1 comment, last by JIMbond21 20 years, 8 months ago
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
THX,JAP
Advertisement
Try to find an open-source physics engine. There is one posted in the news.

Scott Simontis
Big Joke: C#
Scott SimontisMy political blog
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.
- The trade-off between price and quality does not exist in Japan. Rather, the idea that high quality brings on cost reduction is widely accepted.-- Tajima & Matsubara

This topic is closed to new replies.

Advertisement