how do i make the camera a border?
hello everyone. Im making a 2d game and i want to make the camera the border of the screen. such that objects wont be able to pass the camera which is fixed.
Comment
If your camera is fixed, can't you just put colliders at the edges?
Since you probaly have a ortographic camera you can use the camerasize to position the colliders (cam size = distance from center to edge) in a skript. This works even when rescaling the camera on runtime.
Your answer
Follow this Question
Related Questions
Help about understanding ceratin command problem 1 Answer
Using Rigidbody.MoveRotation 0 Answers
Problem of stuttering FPS Camera 1 Answer
MouseLook script for rigidbody player 0 Answers
Rigidbody Based Third Person Controller Stutter Problem 0 Answers