- Home /
 
               Question by 
               ColonL · Sep 21, 2017 at 12:40 PM · 
                movementmovement scriptmovements  
              
 
              Boundaries for Camera Movement
I'm moving my Camera with Touch and here's the Code -

My Camera is Moving away from the play area,I want to restrict it's movement. So,How do i set Boundaries for my Camera Movement?
Thanks in advance.
 
                 
                cameramovement.png 
                (24.2 kB) 
               
 
              
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by hexagonius · Sep 21, 2017 at 01:26 PM
after translation clamp it's position to whatever bounds you want.
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                