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 / ripping my hair out over code snippet

Author
Message
Sleet
21
Years of Service
User Offline
Joined: 3rd Aug 2003
Location:
Posted: 14th Nov 2003 03:07
The program I am trying to run basicaly is two matricies side by side (1000 units square, first matrix at 0,0,0 second at 1000,0,0). Right now all the program does is take a camera and using the arrow keys runs the camera over the terrain (following the terrain contours of course).

The code works perfectly as long as I don't leave the cinfines of matrix 1. The code breaks when I get onto matrix 2 (I can still roam around but the camera will not follow the terrain contours). I've tried everything I can think of (this is just my latest version) and I can not figure out for the lofe of me why the code does not work.
Sleet
21
Years of Service
User Offline
Joined: 3rd Aug 2003
Location:
Posted: 14th Nov 2003 03:09
I cut out an extra line of code that might get confusing. Try the source code on this post
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 14th Nov 2003 10:14
looks like it should wor to me, provided matrix 2 is at 1000,0,0 and matrix 1, is at 0,0,0


GO TO THE ETERNAL DESTINY FORUMS!!! http://forums.eternaldestinyonline.com
Do it now!!!
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 14th Nov 2003 11:38
Problem is that GET GROUND HEIGHT is relative to matrix position, not world position, so for matrix 2, assuming it is at 1000,0,0



Boo!
Sleet
21
Years of Service
User Offline
Joined: 3rd Aug 2003
Location:
Posted: 15th Nov 2003 05:18
thank you

Login to post a reply

Server time is: 2024-09-21 09:25:41
Your offset time is: 2024-09-21 09:25:41