Skip to main content
GameDev.net gamedev.net
🔒 Locked

lesson 35

Started by Mircea Pasoi Nov 26, 2001 at 10:04 AM 2 replies 300+ views
Original Post
Mircea Pasoi
Mircea Pasoi
I have used lesson 35 to create a grass landscape. I''ve added an enviroment map and texture map to the field. I''ve put the routines for moving from lesson 10. I want that when i move forward or backwards, depending on the height of the current position to go up or down the z axis. I mean i want to climb the hills. How can i do that?
omega_001
omega_001
Best bet is to retrieve the height of the landscape and then add it to the yposition
Mircea Pasoi
Mircea Pasoi
The yposition you say?
How exactyle do i do that, since the height function returns an integer and ypos is float. I simply add it or divide it or something?
ATronic
ATronic
You can add an int to a float.

Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.