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 Discussion / collision problem

Author
Message
Dr Manette
19
Years of Service
User Offline
Joined: 17th Jan 2006
Location: BioFox Games hq
Posted: 21st Jan 2006 04:09
I\'m making a Doom style game, which means it is in first person and uses 2d images on object plains, and 3d objects. I want to know how to detect a 3d object colliding with a object plain to stop the camera from going through the wall along with the object. I set it so there is an object where the camera is. The problem with the collision is that when the object hits the plane it moves me to the same every time. I have no idea why and i would appreciate help.

Pincho Paxton
22
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 23rd Jan 2006 19:22
Had a quick look through. Seem unlikely that you would us X twice. What about oldz# ?

position object 6,oldx#,camera position y(),oldx#

Login to post a reply

Server time is: 2025-05-23 00:08:26
Your offset time is: 2025-05-23 00:08:26