In Unity, how to control the horizontal and vertical movement, as well as rotation and panning, of a top-down camera (45-degree angle perspective)?

I’m about to go crazy with this problem. I’ve spent two days and still can’t figure it out. I need a 3D camera control effect like the game ‘Frostpunk’. I don’t know how to use Euler angles or quaternions. The most important thing is that everything becomes unpredictable when the camera’s Rotation.Y changes. I need… Read More In Unity, how to control the horizontal and vertical movement, as well as rotation and panning, of a top-down camera (45-degree angle perspective)?

C# – Can't get this seemingly simple web request working

I have the following powershell Web-Request that works correctly for sending a command to a PTZ camera: Invoke-WebRequest -UseBasicParsing -Uri "http://192.168.111.75/ajaxcom" ` -Method "POST" ` -Headers @{ "Accept"="application/json, text/javascript, */*; q=0.01" "Accept-Encoding"="gzip, deflate" "Accept-Language"="en-US,en;q=0.9" "DNT"="1" "Origin"="http://192.168.111.75" "X-Requested-With"="XMLHttpRequest" } ` -ContentType "application/x-www-form-urlencoded; charset=UTF-8" ` -Body "szCmd=encodedStringHere" I’m trying to recreate this in C# but I can’t… Read More C# – Can't get this seemingly simple web request working

How to get access to "mesh renderer" of a different object using raycast?

For example, a camera that generates Raycast and if it hits it destorys an object. public class RaycastScript : MonoBehaviour { void CheckForRaycastHit() { RaycastHit hit; //if raycast hit if(Physics.Raycast(transform.position, transform.forward, out hit)) { print(hit.collider.gameObject.name + " hit"); //print what object got hit Destroy(hit.collider.gameObject); //destroy object } } void Update() { //mouse controls camera float… Read More How to get access to "mesh renderer" of a different object using raycast?