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 / Terrain Boundaries

Author
Message
Timatron
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 5th Dec 2009 22:33
I just started using DarkGDK and I was wondering how to get it so my camera can't exit the terrain, but I every time I turn camera collisions on it messes up the whole movement and just leaves the player in one place. All I really have is:
dbAutomaticCameraCollision(0,2,1);
and that doesn't work. Any help is greatly appreciated!

-Tim
Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 6th Dec 2009 00:13
if you dont want it to leave the terrain then you can use this.
i use it in mine.
simple and easy, three paramters;
CamId = <CameraId>
x = <Max distance from 0>
y = <Max distance from 0>


im working on a terrain example so things like this are easy to understand

Problem Solution That Never Fails: "Build A Bridge And Get Over It"
Timatron
14
Years of Service
User Offline
Joined: 5th Dec 2009
Location:
Posted: 6th Dec 2009 00:21
That worked great, thanks!
Freedom Fighters
15
Years of Service
User Offline
Joined: 2nd Nov 2009
Location:
Posted: 6th Dec 2009 02:45
no problem

Problem Solution That Never Fails: "Build A Bridge And Get Over It"

Login to post a reply

Server time is: 2024-11-20 09:39:56
Your offset time is: 2024-11-20 09:39:56