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 / Is there any way of detecting if an object collides with bsp

Author
Message
Terabyte
23
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 18th Mar 2003 18:15
Is there any way of detecting if an object collides with bsp i dont what it to slide. I just want a value returned if an object collides with a wall in a bsp map img][/img]
I have a word of advice...
..don't piss on an electric fence!
the architect
23
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 18th Mar 2003 22:53
I use The BSP COLLISION commands. If you put a 1 instead of a 0 at the end of the SET BSP OBJECT COLLISION
ie
SET BSP OBJECT COLLISION 20,20,.80,0
replace 0 with 1
SET BSP OBJECT COLLISION 20,20,.80,1
1 wll simply reset the collision to the last position.

I actually have a bullet collision method for BSP's where I attached a collision index to the object. Use the PROCESS BSP COLLISION command to instantly detect collision rather than wait for the screen refresh. Use the BSP COLLISION HIT command to confirm a collision. If a collision is detected the bullet is returned to its last point before moving. Then I turn the collision index off and go on to the next bullet. Works a treat. At least until a BSP LINE OF SIGHT command is developed.

mimesis
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Norway
Posted: 18th Mar 2003 23:03
Yeah thats nice if PROCESS BSP COLLISION, BSP COLLISION HIT and the like would
actually work. I've tryed these commands on many HalfLife BSP maps , and they simply dont return anything.

@the architect
what kind of BSP maps are u using? Q3?
the architect
23
Years of Service
User Offline
Joined: 6th Jan 2003
Location: United Kingdom
Posted: 18th Mar 2003 23:10
Yes, I use Q3 maps. It does seem to be the one that works best. And my game is progressing and a good pace.

I must admit my programe went to peices when I tried to use Half-life maps.

Login to post a reply

Server time is: 2026-07-10 19:47:13
Your offset time is: 2026-07-10 19:47:13