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 problems

Author
Message
Bren
22
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Belgium
Posted: 22nd Oct 2003 23:57 Edited at: 23rd Oct 2003 00:00
Hi, I use .X models for everything. Including my levels. Now the problem is if I do normal collision detection in my level, there is always collision when I'm in it, only when I go out of it (using no clip ), there is no collision.

Same problem, if I am rather far away from an enemy there is a collision, changing the object's radius wont help. As soon as I change the players radius no collision works at all, not even with the level itself as it was before.

Set object collision to polygons doesn't help either for none of the situations.

In other words I'm obviously doing something wrong and I'm in need of a good collision example Or should I just use .bsp maps and save myself a load of troubles.

Games don't kill ...
I do!
http://www.gamingzone.be the ultimate gaming community
Mentor
23
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 23rd Oct 2003 00:36
make your level as an x model, but dont make it fully enclosed, then surround it with a skysphere or whatever with an object number of (say) 6000, then do

set object collision off 6000

collision for x models will always detect an hit if you are inside the object, that is, when you are in a fully enclosed area, if the object has hollows and tunnels then thats ok, but don`t wrap the world round to enclose the space the player is in, the exception is like the example, where you enclose an object with another to make the sky or whatever and then turn the collision for that object off to stop it registering, cheers.

Mentor.
Bren
22
Years of Service
User Offline
Joined: 15th Oct 2003
Location: Belgium
Posted: 23rd Oct 2003 01:27
well all my levels are open from one side (it's a side scroller), and if I turn off colision, when will I know when I hit a wall in my level if the collision is off?

Games don't kill ...
I do!
http://www.gamingzone.be the ultimate gaming community

Login to post a reply

Server time is: 2026-07-26 05:22:34
Your offset time is: 2026-07-26 05:22:34