View Full Version : HELP!! Terrain level detection!
05-06-2001, 01:41 AM
I've stuck on this for a year! How can I move my camera on my terrain that have hills,stairs,rocks etc.What I mean is the terrain is not flat!
I create my terrain using 3D Studio and convert it into display list using 3D Exploration.So does anybody can help please??
05-06-2001, 02:53 AM
What format is your data? Is it a height map? or some other type? If it is a height map you can just find the normal of the cell you are standing in and use the plane equation to calculate the camera's position.
As for steps and rocks, thats a little more complicated but nothing you couldn't solve by looking at some of tutorials on www.flipcode.com (http://www.flipcode.com) Check out the tutorials on Collision Detection, these will also help if your not using height maps.
Hope that helps but trust me when I say that Collision detection is not an easy subject.
Powered by vBulletin® Version 4.2.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.