- Home /
moving in terrain
Hi,
In design mode how do I stop camera from moving through terrain. I have a FPS that now moves into the ground instead of moving over the small hills.
For some reason it started off OK but I must have clicked something as now I move into the ground, but before I moved over the ground?
It is the 3D buzz tutorials. The camera doesnt move on the ground properly. How do I tweak it so it does?
I retried an old project and the camera/graphic on FPS isnt going through the terrain and seems to be moving over the ground properly. $$anonymous$$y previous settings had it moving through terrain and a long way from the ground at times.
The Camera with FPS was working oddly as I restarted my project and it worked fine. There are some quirks/settings with this camera that make it move on the terrain with gravity or move above and below the terain wrongly.
Answer by hirenkacha · May 31, 2012 at 08:43 AM
in 3d buzz there is further tutorial to deal with gravity. so once you reached up hills you will again get down with gravity using raycasting.
which video deals with gravity as I thought FPS does this automatically? You mean the character controller video?
Answer by jagguy · May 31, 2012 at 03:11 PM
OK I fixed it.
The character controller had transforms not set at 0,0,0 and this seemed to mess things up visually with the camera. I dont know why but it is beginners error. I walk through terrain like this?
Your answer
Follow this Question
Related Questions
Gui problems. 1 Answer
Mecanim walk to target position 1 Answer
Using gameObject.translate moves it farther than expected 1 Answer
Mouse Click to keyCode 1 Answer
make game objects not move in scene view 2 Answers