What is te best method to detect collision and stop animation for a player
Example: a player 3D Fbx has an Idle and a Walk animation on Mechanim based on Speed parameter
When a player walk to a wall it continues to play walk animation and does not stop to Idle .
What to to do to make him stop to Idle?
Is that also needed to make Walls collision to stop the player or Navmesh baked is sufficient?
Comments
Then check Slow movement near wall colliders? in the Player's Inspector and fill in the fields below. This will cause the Player's movement to slow down near the walls by a given proportion. You may need to tweak your movement values / Mecanim transitions to cause him to stop completely.