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 / collision is cancelling itself out.

Author
Message
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 20th Oct 2004 11:50
Hi

I was doing a little debuggin on my current game, because I had a problem with some of the enemy blocks (red) passing though the moveable objects (everything els), well I descovered that at some points, two or more red objects hit the white barriers and are pushed into each other, my theory is, that this is causing the collision for those objects to be cancelled out, and thus they no longer respond to collision. I need help in getting these objects (red) from cacelling each other out. Here is the code...



Another thing I would like to ask, is how to check if any of the red objects have passed a certain area in the level, like checking to see if they are at Z 400?

Thanks.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 21st Oct 2004 12:01
Uh hum, yeah, I could use an answer, sometime, anytime.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 22nd Oct 2004 09:40
37 looks and not a single attemp to answer my question, tisk, tisk

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 23rd Oct 2004 07:58
It's been like 4 days and still not a single reply, jeez.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
nuclear glory
21
Years of Service
User Offline
Joined: 2nd Oct 2003
Location:
Posted: 23rd Oct 2004 20:06 Edited at: 23rd Oct 2004 20:07
Piling collisions is a complex topic.

Giving the order in which you're detecting things, there are a few things that could be happening here.

Let's take one example:

Object A hits a barrier and slides.
Object B hits a barrier and slides.

Are you checking the movement of these objects along their slide?

If not they'll pass right through each other. Each slide must be seen as a new motion and the testing begins over again. This happens because the only collision registered is against the barrier. If you perfect the object/object collision code to be stubborn, even this will result in jittering as the system jumps between registering the barrier and registering object/object collision. You need a solution that handles multiple collisions at once without missing or jittering.

Lead Programmer/Director
Powerful Collision DLL for DBPro and DBC: http://www.nuclearglory.com
Lightwave Scene Exporter to .X also at: http://www.nuclearglory.com
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 24th Oct 2004 04:40
Thanks, but I don't know how to do that. The problem is that when two objects collide they cancell out collision against the barriers, and everything els for that matter, and this happens when two squars hit the barriers and are slid into each other.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
Ilya
21
Years of Service
User Offline
Joined: 10th Aug 2003
Location:
Posted: 24th Oct 2004 05:46 Edited at: 24th Oct 2004 05:47
Get
Quote: "nuclear glory"


for BarkBASIC.

The default editor is fine.

Quote: "I've seen the word programming and I'm not sure what it means. Anybody please explain?"
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 24th Oct 2004 06:55
I am not going to spend a bunch of money to get the DB enhancment, and then have to buy a Dll, the DB collision works, I just need some help with it. Please someone actually give me somthing I can do!

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 25th Oct 2004 06:14
thats what I thought until I got to a point where I needed a better collision system, thats where NG came in. Sure I had to buy the enhancement but it was only £10.00 from Amazon, and the DLL was only about the same, trust me, you will not be disappointed.
Major Payn
21
Years of Service
User Offline
Joined: 16th Dec 2003
Location: United States of America
Posted: 25th Oct 2004 06:58
I AM NOT GOING TO BUY ANYTHING, I do however whant an answer to my question.

Guns arnt the problem, people are the problems, shoot all the people and guns arnt a problems anymore.
GameVille
20
Years of Service
User Offline
Joined: 25th Oct 2004
Location:
Posted: 25th Oct 2004 18:22
Try with Sparky's Collision DLL - it's free
Look in "Program announcements" and search for the thread ....em....
"free collision DLL"

Germany ~~~ a undergoing state ^^

Login to post a reply

Server time is: 2025-05-24 12:34:10
Your offset time is: 2025-05-24 12:34:10