- Home /
Camera Question
I'm trying to make an RTS styled camera for my game, however, it keeps going through objects. I believe it has something to do with my scripts
var speed = 5.0;
function Update () { var x = Input.GetAxis("Horizontal") Time.deltaTime speed; var z = Input.GetAxis("Vertical") Time.deltaTime speed; transform.Translate(x, z, 0); }
and
var speed = 5.0; function Update () { var y = Input.GetAxis("Mouse ScrollWheel") Time.deltaTime speed; transform.Translate(0, 0, y); }
can anyone help?
Your answer
Follow this Question
Related Questions
Modular Room System Similar to Mega Man 0 Answers
Is there a way to make the camera collide with specific objects - 2D 1 Answer
iPhone frontfacing camera taking picture upon collision with another object or at a certain time? 0 Answers
how to prevent camera from moving through meshes 1 Answer
How can I change this script? 0 Answers