I'm not sure if this counts as an error since there's no error icon in the box. The player doesn't go through walls or the zombie, but the zombie goes through the walls. Everything has a collider box/capsule. The game is 3D.
This is the script:
using UnityEngine;
using System.Collections;
public class AddRigidbody: MonoBehaviour {
public float mass;
public Rigidbody rb;
void Start() {
rb = GetComponent();
rb.mass = mass;
}
}
If you can help, that'd be great.
Thanks!
↧