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
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
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.
Why not use one of the Controllers? That's exactly and entirely, what they do, especially CharacterController. Are you using a Rigidbody instead?
– Waz