I want to create an object in my game (3rd person) that can’t be moved, but the character can run into and be stopped (like a wall). I can’t find any good tutorials, and my character keeps ending up walking through the object. Any suggestions?
It depends a little bit on how your character is moving around in the world. Generally just putting a collider component on the object and making sure that its not set to be a trigger collider and that doesn’t have a rigidody will do the trick.
if you are using .Translate or.position then you are literally just teleporting the player around and there isnt a physics check being done if I remember correctly. If you need physics interactions, you have to use CharacterController.Move or .SimpleMove, or use Rigidbody.AddForce