- Home /
Question by
ShadyShyGuy · Jan 08, 2019 at 01:14 AM ·
3d
Character go through object.(Need a fix)
My character goes through my tree i put a capsule collider on both of them, but it still goes right through it. I forgot how to fix this.
Comment
Answer by JasonCG · Jan 08, 2019 at 01:21 AM
Check the Layer on the GameObject of your tree with a collider, and check the Layer of your player's capsule collider. Ensure physics is active between the two of them in the Physics Layer Collision Matrix (accessed under Edit > Project Settings). If they are on different layers the checkbox on the matrix needs to be checked.
Also ensure IsTrigger isn't checked on your capsule colliders.
Your answer