#### Archived

This topic is now archived and is closed to further replies.

# Imitating Walking/Movement- interaction with ground

This topic is 6013 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

It''s easy to implement controls to move the camera around, but I''m wondering what''s the best way to implement a first-person feeling of walking around on the ground. The ground is, lets say, bumpy, so one cannot simply extract the y value of the coordinate from a vertex or such. Does it require interpolation between vertices, and if so, how would one do that in 3-dimensions? To clarify, say that there''s a 5x5 heightfield that is rendered. I want to be able to feel like I''m walking on that. The x-value and z-value of the camera isn''t an issue; I need the y value to correspond to the terrain right below the camera (assuming the camera is about 5 units above the terrain to act like eye level). So at some points, the camera will be standing in the middle of one triangle. Am I supposed to interpolate between the three vertices to obtain the y-value corresponding to the point in the middle of the triangle/on that plane?

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 9
• 9
• 9
• 11
• 11
• ### Forum Statistics

• Total Topics
633679
• Total Posts
3013300
×