Hi,
Im having some problems with collisions hope someone can help!
I have a gameobject which i instantiate and the user can move around with the arrow keys, which I have coded as below:
if (Input.GetKey(KeyCode.UpArrow))
transform.Translate(new Vector3(0,0,1) * Time.deltaTime, GameObject.Find(“Main Camera”).transform);
Im having problems that when the item is being moved around it is going through walls etc, I have a rigidbody and colliders on the walls and the moving object. Clearly im doing something wrong, can someone tell me what im doing wrong?
This also appears to be happening if I use rigidbody.Addforce, with the added fun that doing it that way means i cant stop it moving!