how doI add collision to my character ?

hi…

I wrote a script for the movement of my character , but it doesn’t stop when it collide with wall .

what should I do ?

note : I don’t wanna use First or third controller

Why not use one of the Controllers? That's exactly and entirely, what they do, especially CharacterController. Are you using a Rigidbody instead?

–

1 Answer

1

Add a collider: click on your character and then use Components → Physics → Box Collider.

Note that you cannot use tranform.Translate to move your character with this in any way that I know of.