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 Discussion / Sliding collision using static objects

Author
Message
DARKHALO2K
21
Years of Service
User Offline
Joined: 4th Sep 2003
Location: UK
Posted: 18th May 2008 21:52 Edited at: 18th May 2008 21:53
Hi there. I've been playing around with DB's included sliding collision source (example 25) and have found that in running the code against a maze of static objects I get the occassional collision errors, in that I cannot pass through some open areas.

Has anybody come across this before, and know of a solution at all? I cannot see any errors in the collision code, and have tried leaving a space between objects (in case of calculation errors), but to no avail.
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 21st May 2008 11:18
Using static objects, there has to be a static collision box around each area that is to be collided with. Perhaps your collision areas are overlapping at some points? So, if you have a maze that is a static object or collection of static objects, you have to put a static collision box appropriately sized for each wall.

Enjoy your day.

Login to post a reply

Server time is: 2025-06-05 21:14:38
Your offset time is: 2025-06-05 21:14:38