I’m totally new to Unity though I’ve been coding a bit and I’ve made some stuff in GameMaker. Anyways I’ve been working on the basic stuff for a 2.5D sidescroller and I’m having trouble with refining the camera. The cursor will move independent of the camera, but WILL extend the camera somewhat subtly if pushed near the edge. I’m also trying to get the camera to extend to the left or the right of the character depending on which direction the character is facing. I’ve got basic camera movement and camera boundaries relative to the character. I just need help with subtle camera movements and set ups based on the cursor in relation to the character (i.e. a cursor to the right of a character means he’s facing that direction and would have the camera extend that direction). I’m having trouble properly measuring the distance between the cursor and the character.
To my understanding, “Raycasts” might be the best way to figure this out, but after messing with them a while I’m quite lost on them. I’m not really good with coding and I’m used to C++ so I’ve been using C#. It’d be awesome for anyone to get back to me!