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.

Dark GDK / walking through walls DBO world / lots of questions

Author
Message
atomic knights
16
Years of Service
User Offline
Joined: 12th Apr 2008
Location: On my laptop
Posted: 12th Apr 2008 22:29
I am looking to make a simple 3d game for educational purposes.

Is there a simple way of not walking through the 'walls' of a DBO world?

Can I place other objects in a DBO world and interact / click with them?

I saw the collision library referenced and I really don't want an entire library.

thanks
KISTech
16
Years of Service
User Offline
Joined: 8th Feb 2008
Location: Aloha, Oregon
Posted: 12th Apr 2008 23:32
Yes, you can place objects in your world, apply collision behaviors to them so they'll stay on the ground, but can be interacted with.

If you want to use built in collision commands, there's a room demo that should have come with DBPro that shows you how to not walk through walls, and also lets you push a segment of the wall around to reveal a hidden room. That code should help you get what you're after.

atomic knights
16
Years of Service
User Offline
Joined: 12th Apr 2008
Location: On my laptop
Posted: 15th Apr 2008 14:26
The problem is that I don't have dbpro, using the C/C++ darkgdk. Is there any way I can get at this demo?
thanks for the response
RancidRat
16
Years of Service
User Offline
Joined: 19th Feb 2008
Location:
Posted: 15th Apr 2008 16:40
an easy (but not the recomended way) not to walk through walls:

lets say the dbo level is object number 1

dbSetObjectCollisionToPolygons ( 1);
dbAutomaticCameraCollision ( 1, 10, 1);

The 10 is the collision radius, so the camera must always be higher than this from the ground.

Login to post a reply

Server time is: 2024-09-29 17:32:06
Your offset time is: 2024-09-29 17:32:06