I have an object that I want to rotait around a target, could someone help covert the mouseOrbit script to a movement controlled buy W,A,S,D or the Arrow Keys.
Consider using the Input.GetAxis(“Horizontal”) and Input.GetAxis(“Vertical”) to get your base movement. (minus one to one)
Your “target” on the camera’s facing is based on the direction of the camera. (transform.rotation=Camera.main.transform.rotation) The only difference is that you set the localEulerAngle.z to zero every frame.
Now, movement is based off of the transform’s direction. (transform.Tranlsate(Vector3(Input.GetAxis(“Horizontal”),0,Input.GetAxis(“Vertical”)) * speed * Time.deltaTime);
thx, that helped alot.