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 / Tweaking Collision Detection

Author
Message
Bulleyes
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 1st Aug 2003 18:22
I used to model my 3-D model as a single mesh, as oppose to several meshes with each mesh as a limb. This makes my model animation easier.

Now the problem arises when I used the collision detection functions in DBpro. As far as I understand, DBpro create an invisible collision sphere/box on each limbs. As due to the way I created my 3-D model, there will be only a single limb, thus there is only one bounding box/sphere, which makes the collision detection kinda inaccurate. Does anyone how to workaround with this?

Well, to be more precise, actually besides the single mesh, there will be some bone meshes beneath this mesh. These bone meshes is to help me in creating the animations. If I am able to selectively turn on the collision sphere/box on these bone meshes only, then it just might able to solve my problem too.

Any bright ideas out there?
Thanks in advance!
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Chenak
23
Years of Service
User Offline
Joined: 13th Sep 2002
Location: United Kingdom
Posted: 1st Aug 2003 19:06
I've got code for object - object accurate collision which should help i got it from the code snippets column and modified it.

Put this code before the main loop:



this bit of code somewhere in the main loop:



and this after the main loop:



hope this helps

Once you start down the Dark Path, forever will it dominate your destiny...

Login to post a reply

Server time is: 2026-07-21 21:13:13
Your offset time is: 2026-07-21 21:13:13