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, you guys know it... so share it plz

Author
Message
Mark3D
22
Years of Service
User Offline
Joined: 29th Mar 2003
Location: United Kingdom
Posted: 23rd Feb 2004 17:43
hi all,
basically, does any have a simple code they can give me that detect and do something about collision?

what i would like please is some code that demonstrates the collision between my character and the enviroment and stop when it hits some thing. also in the same code, some help on how to make other objects moving in a random direction and when they collide with the enviroment, turn around and carry on moving foward. but when they hit the wall/object, the rotate around around 180 degrees if u know what i mean.

Im in college now, so i will explain later when im at home and have more time.

Mark

Nature gave man 2 ends. One to think with, the other to sit on. Mans' sucess depends on which end he uses most!!
BearCDPOLD
21
Years of Service
User Offline
Joined: 16th Oct 2003
Location: AZ,USA
Posted: 25th Feb 2004 06:31
The DB collision command set currently is nearly worthless for any serious type of programming. Go to http://www.nuclearglory.com and you can download a demo of their collision dll which makes collision easier, more flexible, and more accurate. As far as changing direction, the idea is to detect collision with the wall, rotate object 180, and continue the loop.

Crazy Donut Productions
Current Project: KillZone
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 25th Feb 2004 09:25
For that code you requested, it's not much, but have a look at this;



That'll move an obejct till it collides, when it does, it's randomly rotated, and moved along again.

Hope I Helped...
Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy

Login to post a reply

Server time is: 2025-06-05 19:14:53
Your offset time is: 2025-06-05 19:14:53