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 / Please Help with camera collision for my map (.dbo file)

Author
Message
JamesWalker101
16
Years of Service
User Offline
Joined: 14th Apr 2010
Location: England
Posted: 5th Oct 2012 22:42
Hello, new to dark basic 3d, and I am making a simple game. I have got to the stage, where you can look around the map with the mouse, and use WASD to move. Now I need to make it so you cant walk through walls and there is gravity.
I have tried placing this just before my game loop:

This does nothing. The camera is above the floor, since I used

The tutorials seemed to have the autocam off command, so I tried it, but it did nothing. My map is small, inside, made with 3d World Studio. It is .dbo, but i could export as .x. None of them work. Please give some example code for collision.

My whole loop is below:

Login to post a reply

Server time is: 2026-07-08 23:04:57
Your offset time is: 2026-07-08 23:04:57