Why is my character passing through the object even though I have configured box colliders and rigidbody for them?
<p>Check inspection for: <a href="https://i.stack.imgur.com/uRpGO.png" rel="nofollow noreferrer">Blocking wall</a></p>

<p>Check inspection for: <a href="https://i.stack.imgur.com/lPvtM.png" rel="nofollow noreferrer">character</a></p>

<p>It still passes through the blocking wall.</p>

<p>In Script in character:</p>

<pre><code>if (Input.GetKey(KeyCode.UpArrow))
{
    transform.Translate(Vector3.forward * 15 * Time.deltaTime);
}
if (Input.GetKey(KeyCode.DownArrow))
{
    transform.Translate(-Vector3.forward * 15 * Time.deltaTime);
}
</code></pre>