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.

3 Dimensional Chat / Collision

Author
Message
Jimi
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 21st Sep 2003 00:06
DBC's collision never seems to work for me. Has anyone else had the same problem? If so, how did you fix it?

I heard someone mentioning you can make your own collision system. How?

Thanks alot.

KamaKase
22
Years of Service
User Offline
Joined: 29th Oct 2002
Location:
Posted: 21st Sep 2003 00:08
Yeah, I have problems to. For some reason Collision just doesn't work for me.

The alternative way to doing it is to just check whether the object is in the area of the other.

Object_Width=12

if object position 1+Object_Width>Object B then COllision=1


But don't pay any attention to that mess of words.
Jimi
21
Years of Service
User Offline
Joined: 14th Sep 2003
Location:
Posted: 21st Sep 2003 00:25
I didn't understand too well, but I think I get the general idea.

Thanks.

Preston C
22
Years of Service
User Offline
Joined: 16th May 2003
Location: Penn State University Park
Posted: 21st Sep 2003 00:41
I put a simple box collision function I made in the CodeBase that you could use. Pretty simple, but doesnt handle rotated collision.


Dark Basic Pro has arived! I can feel the power!
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 23rd Sep 2003 16:40
most easiest way of doing your own colision is calculating distance between two objects, let say distance between them is do# size of 1 object is so1# and size of second one is so2# -size would be radius of imaginational collision ball around your object -if second object is inside the ball, you declare collision.

if so1#+so2#=>do# then objects are colliding

...not the most precize way but easy and quick. You can call it ball colision, as such it is refered also in DB which have it build in.

If you want to have exact collision detection based on mesh form (in DB its called collision to poligons) then I cant help you because its preaty dificult mathematical calculation which extend my abilities and probably abilities of majority people here on forum, if not all.
arras
22
Years of Service
User Offline
Joined: 3rd Feb 2003
Location: Slovakia
Posted: 23rd Sep 2003 16:42
Bye the way collision detection in DB is working well, you are doing something wrong, read carefuly manual, check examples and make sure you have all settings like global collision and similar turned properly.

Login to post a reply

Server time is: 2025-06-26 23:35:32
Your offset time is: 2025-06-26 23:35:32