- Home /
 
               Question by 
               vincentamato · Nov 21, 2015 at 08:34 PM · 
                physicsiosmobile devicesborders  
              
 
              Creating Physical Border around Edges of Device Screen
Hi. I am looking to create physical borders or walls around the edges of the screen my game is being played one. The device will be an iPhone. How would I go about this? For example I have a sphere that I would kill to bounce off the edges of the screen. How can I accomplish this? Thank you.
               Comment
              
 
               
              Answer by tanoshimi · Nov 22, 2015 at 08:01 AM
"Create physical walls around your screen"...? Bricks? :)
If you want to create gameobjects in your scene that line up with the edges of the camera viewport, use ScreenToWorldPoint() to determine their world coordinates : http://docs.unity3d.com/ScriptReference/Camera.ScreenToWorldPoint.html
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                