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 / Keeping camera on the ground

Author
Message
tneva82
16
Years of Service
User Offline
Joined: 7th May 2008
Location:
Posted: 15th May 2008 10:40
Looking at world demo from GDK it seems very nice except you can go flying by pointing camera up and moving forward. How would one go around moving(while allowing camera to be pointed up) forward? The FPS demo solves that by keeping camera Y level constant by not having different height levels in the area but whatabout if level is supposed to have different height levels? Ladders, hills etc.

Only solution I have had so far(keep supposed Y level of every co-ordinate stored somewhere) doesn't seem that feasible.
Morcilla
21
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 15th May 2008 13:25
Quote: "keep supposed Y level of every co-ordinate stored somewhere"

Yeah, that or calculate it on the fly, depending on the way used to generate the terrain. You have to feed the Y position somehow.
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 15th May 2008 13:53
Use the terrain ground height at the x,z coordinate of the camera and add a fixed amount to that to get the y coordinate.
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 15th May 2008 22:38
jinzai, hes talking about a BSP not terrain. Does it work the same?

Login to post a reply

Server time is: 2024-11-20 11:22:56
Your offset time is: 2024-11-20 11:22:56