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 / What MAKE STATIC COLLISION BOX() does?

Author
Message
Bulleyes
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 13th Dec 2002 06:04
Can anybody teach me what MAKE STATIC COLLISION BOX() does? Initially I thought it creates a invisible box in the world for collision detection. Then, I realize there can be only one static collision box in the world. Now I am puzzzle.

I would really appreciate if someone can give me a quick walkthrough about the collision detection mechanism in DBpro, perhaps by illustrating each command by their use cases. I had gone throught the examples and help files, but I still don't quite get it.

Thanks a lot! I hoped I didn't bother you guys much.
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 13th Dec 2002 19:03
No, you can make as many static collision boxes as you want, the problem is that they are not referenced in any way and go instead to an internal table (I imagine??) so once created they cannot be manipulated.

I cannot currently find how to delete these boxes, but then static boxes are a legacy leftover from DB113 (which had a whole bunch of static commands) so I`d avoid them if I were you.
Bulleyes
21
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 13th Dec 2002 19:25
So what were the "new" ways for collision detection mechanism in DBpro?

Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
Ratty Rat
21
Years of Service
User Offline
Joined: 24th Sep 2002
Location:
Posted: 16th Dec 2002 16:35
Well, you`ve always been able to collide using boxes, spheres or polygons (see BASIC3D/COLLISION COMMANDS in the manual).

Spherical collision has been improved in that you can now set the collision Radius (although this was not working properly last time I looked, but that was patch 1).

There is also automatic camera and object collision.

Login to post a reply

Server time is: 2024-05-02 13:29:49
Your offset time is: 2024-05-02 13:29:49