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 / BSP Collision Bug!

Author
Message
Rob K
Retired Moderator
21
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 29th Sep 2002 02:14
When an object moves directly at a face (ie. wall) of a BSP, DBP correctly detects it as a collision hit (assuming collision threshold and other settings have been done correctly)

However if the user travels at an acute angle (eg: 30 degrees or less) towards a surface, DBPro does not detect a hit and the result is that the user will fall through the floor. This mostly seems to affect places such as stairs where the next level up is not very high and so instead of stepping up when going an an acute angle at the surface, the player plumets through.

DBS please fix this asap.
what is a signature?
Farwalk
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location:
Posted: 18th Oct 2002 16:05
I noticed this problem too. Is this on the bug list to be fixed?

Farwalk
21
Years of Service
User Offline
Joined: 27th Sep 2002
Location:
Posted: 24th Oct 2002 19:45
This falling through stairs effect is still apparent after patch 2. If you try to climb a set of stairs from straight on, it works fine, but if you try to climb those same stairs at a sharp angle you will fall through the BSP. Note, this effect does not happen if you don't implement any sort of gravity (you climb the stairs from any angle with no problem), but stairs without gravity are less than useful as you can't go down them. Below is some basic code (copied and slightly modified from a post by haggisman, I have some code of my own but this code is much cleaner and shorter). Also a link to a .bsp file that has some stairs

http://www.angelfire.com/trek/farwalk/clip2.bsp
http://www.angelfire.com/trek/farwalk/clip2.bsp



<<When an object moves directly at a face (ie. wall) of a BSP, DBP correctly detects it as a collision hit (assuming collision threshold and other settings have been done correctly)

However if the user travels at an acute angle (eg: 30 degrees or less) towards a surface, DBPro does not detect a hit and the result is that the user will fall through the floor. This mostly seems to affect places such as stairs where the next level up is not very high and so instead of stepping up when going an an acute angle at the surface, the player plumets through. >>

Login to post a reply

Server time is: 2024-03-29 07:54:27
Your offset time is: 2024-03-29 07:54:27