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.

DarkBASIC Professional Discussion / Collision Points of Contact

Author
Message
DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 5th Jun 2013 01:01 Edited at: 5th Jun 2013 01:02
I was looking around current collision systems for DBP and it doesn't seem one exists with a points of contact collision!

I just have two objects in this picture:


I just want the points of contact.

Thanks,

DigitalFury
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Jun 2013 01:40 Edited at: 5th Jun 2013 01:41
You can use limbs, and get the nearest limb. So put limbs around the building. Or for bullets you can use Sparky's intersect vectors.

chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 5th Jun 2013 01:42 Edited at: 5th Jun 2013 02:22
Do you expect it works in runtime?, or you need just to know where both object collide?


EDITED

We could make a check in a small area to get exactly the point where two objects collide. This method works but it is to slow if you need it for too many objects.



I'm not a grumpy grandpa
DigitalFury
15
Years of Service
User Offline
Joined: 30th Jul 2010
Location: United States
Posted: 5th Jun 2013 02:59
I guess I would have to write something myself. I thought there might be something pre-existing instead of specifying one region and getting one contact point.

I have an idea of how to do this but it would be pretty intensive.

Will see the feature in the editor.

Thanks,

DigitalFury

Login to post a reply

Server time is: 2026-07-07 07:35:44
Your offset time is: 2026-07-07 07:35:44