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.

Newcomers DBPro Corner / Camera Collision?

Author
Message
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 18th Jan 2004 23:29 Edited at: 18th Jan 2004 23:46
I made a First Person script with a camera, but I want to know how to have a collision box around the camera so it will collide with objects. Please help. I'm using DarkBasic Pro for this. I really need the help. By the way, how do I make the camera jump or crouch.

Here is the code.
Mougli
20
Years of Service
User Offline
Joined: 10th Dec 2003
Location: United Kingdom
Posted: 21st Jan 2004 16:54
Hmm i dont think you can put collision boxes on cameras but you could:

make a cube,give it a collision box and then move it with the camera,update its collision and finally position the camera at the cubes new position.

BTW your code looks as though it was just copied from the tutorials.....

Is the glass half empty - or half full?
you can have it all - Just not all at once
Ub3rS0ldAt Patriot of War
20
Years of Service
User Offline
Joined: 8th Dec 2003
Location: United States! Support the Soldiers!
Posted: 22nd Jan 2004 00:15
OMG. Damn, you found out. Thanks for the help. It worked .


.:Leader of BoX-Softare Gaming Company:.

Login to post a reply

Server time is: 2024-09-21 18:34:15
Your offset time is: 2024-09-21 18:34:15