- Home /
Making an RTS camera
How would I go about making an RTS style camera that will collide with the terrain (to stop the camera going through it)? I need the camera to pan, zoom and rotate in the x and y direction.
I've currently got the camera doing all of this using simple translates and rotations, but it does not collide with the terrain - it just goes straight through it.
The terrain will have hills in it, so for example if I pan the camera in to a hill, the camera should avoid the hill while still looking at the original point. How do I go about doing this?
Answer by dustinwloring1988 · Oct 30, 2014 at 07:30 PM
http://answers.unity3d.com/questions/461775/smooth-camera-height-adjustment-based-on-terrain.html look at this post
Your answer
Follow this Question
Related Questions
how to let the camera follow the mouse 1 Answer
How would i get RaycastHit position in this case?[UPDATED] 1 Answer
Move Camera According to Mouse Movement While Button is Pressed 1 Answer
Why are my bullets acting as being deflected by the camera borders collider? 0 Answers
RTS Camera: Rotate Around Point but then Pan Directions Flip 1 Answer