Sorry, but this is my 2nd question regarding this problem that I am facing. I have a moving cube that responds to mouse clicks, whenever I click the mouse the cube moves to that point. I have another object (a wall) when I click on the wall my cube moves into the wall (goes through it or part of the cube acually in it) and doesn’t stop at the wall surface. Please I’ve seen some videos regarding applying rigidbdies and colliders to achieve this but with me no luck so far. Any one can state the steps of doing this but please with no code addition as I’ve seen it done without adding any scripts or coding which I prefer.
add a rigidbody and make sure your wall has a solid mesh. You can change the mesh and physics settings from your object too and set the material, so it can bounce, stop, whatever. Make sure that physics collider is on