- Home /
How do i setup collisions?
How can i setup collisions for a house that i have in my fps game. Right now the character just walks trough the walls so i need to setup collisions.
Answer by smokie69 · Sep 08, 2017 at 11:11 AM
Add RigidBody component to it and colliders. The objects that you want to collide it with must have a rigidbody too.
Answer by wornTunic · Sep 08, 2017 at 11:24 AM
From my perspective, there are 3 things that can be at fault:
Your character doesn't have a rigidbody attached (house colliders don't need to have it)
The collider attached to house and/or character has
isTrigger
set to true.House is in a layer that doesn't collide with character's layer. You can fix this by going to
Edit->Project Settings -> Physics
, where you will find a matrix indicating which layers "interact" (collide) with one another.
Your answer
Follow this Question
Related Questions
NavMesh Collision Detection? 0 Answers
Collision Dection on Tigger Enter 1 Answer
Last collision 1 Answer
How to detect collision on only one side of an object? [C#] 4 Answers
Best collision detection method? 2 Answers