- Home /
Question by
swivel · Mar 31, 2011 at 07:57 PM ·
camerathird-person-shooter
help with camera control logic for 3rd person shooter.
hi, I'm making a 3rd person shooter to show off at this meeting I'm going to in 2 days but my problem is the camera. don't know all there is to javascript, i learn something new everyday, so i cant quite figure out how to do this but, i need to set up the camera behind the player so that the player always faces the same direction as the camera but the camera rotates around them while staying at a set distance unless it hits a wall, whereas it will move closer to the player so that it dosnt clip through the wall.
better to just show you http://www.youtube.com/watch?v=ohzrp18JBgE&feature=related love that game and love there camera. how do i do that?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613120032im_/https://answers.unity.com/themes/thub/images/avi.jpg)