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 / nuclear glory collision problem

Author
Message
dax24
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location:
Posted: 28th Jul 2004 02:16
i am creating a 1st person shooter and i am using the nuclear glory verison 2.0 file.

when i create a camera and then lock a shpere on it as the collision point, when it collides with a wall it will still walk through, if i unlock it from the camera the shere will collide and work fine. does anybody have any idea why?

is it because i am using version 2.0?

if people need to see the code i can put it up.
dax24
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location:
Posted: 28th Jul 2004 17:39
anyone got any idea?
eat much pie
20
Years of Service
User Offline
Joined: 9th Apr 2004
Location: Within the mind of a lowly mortal...
Posted: 28th Jul 2004 17:53 Edited at: 28th Jul 2004 17:54
I'm guessing that you are controling the camera, then positioning the sphere at the camera position each frame. This means that the sphere is colliding with the wall as per expected, but the camera isn't following the sphere. You need to do something like this:



However, I have kept the object control simple to get across the principle.


I hope that helps. If you have any more problems with this, then post some code.


Checkpoint Router: my very own AI routing program: http://eatmuchpie.dbspot.com
dax24
20
Years of Service
User Offline
Joined: 2nd Feb 2004
Location:
Posted: 28th Jul 2004 22:06
thanks for posting eat much pie but i managed to find out the code as well which i am pretty proud of

Login to post a reply

Server time is: 2024-09-22 18:25:12
Your offset time is: 2024-09-22 18:25:12