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 / My function IsGroundSteep() ??? doesn't work :-(

Author
Message
silenus
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location:
Posted: 5th Mar 2009 22:55
I ve written a little function to check how steep the ground ist.
At 8 Points arround my player I check the GroundHeight and look at the highest and lowest point.
These point i tried to mark in game with a cube and a cone. So i thought i could easily check wethers it works or not. But in fact this objects are placed far away from my playermodel and get nearer when i walk towards them. And when I leave the terrain, Dark GDK crashes...
Does one have a hint for me?

Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 6th Mar 2009 02:27
Why not read the terrain height before and after you moved the player. if the angle is to steep then move the player back.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
silenus
15
Years of Service
User Offline
Joined: 4th Mar 2009
Location:
Posted: 6th Mar 2009 09:27
I tried this before. But if climp a preciptious hill with a acute angle it doesn't works. And with this new method I can move the player in the direction of the lower ground, independent from the players direction and movement.

Login to post a reply

Server time is: 2024-09-30 19:14:57
Your offset time is: 2024-09-30 19:14:57