Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark Physics & Dark A.I. & Dark Dynamix / Collision detection - detecting where a collision happens

Author
Message
DrReaper
21
Years of Service
User Offline
Joined: 5th Feb 2003
Location: United States
Posted: 23rd Jun 2008 21:17
How good is the collision? Can I write a routine to detect where two objects collide? Example: A solider shoots a terrorist in the arm. Can I detect if he was hit in the arm versus the leg?
sindore
20
Years of Service
User Offline
Joined: 2nd Jul 2004
Location: Bedfordshire, UK
Posted: 26th Jun 2008 00:26
yes, if you made a square root for ever limb and keep its value small then this can be done.

it should look a bit like this.
sqrt# = sqrt((limb position x - bullet position x)^2 +(limb position y - bullet position y)^2 + (limb position z - bullet position z)^2)

but this does not use collisions, but it it should work just as well.

maybe some one else has got a way that works like this with collisions

soul sucking devils, twisted body of the damed, slivering slim drips from every poor, sin licking at your ears, and the smell stinging your eyes, and if you don't like it, get out of my kitchen!

Login to post a reply

Server time is: 2024-11-24 23:52:49
Your offset time is: 2024-11-24 23:52:49