How to make an object that collides with just the player?
Note: If other objects are in front he can pass through them.
Answer by Ilseroth · Mar 28, 2018 at 04:24 PM
The simplest way to do this is with layers,
if you go to the Edit -> Project Settings -> Physics you'll be greeted with this in the inspector
Now all you have to do is create a new layer for the player, the objects in question, and finally the objects you wish it to pass through, and then uncheck the collision in this matrix so they don't collide.
(So like in this I could make it so "Default" and "Water" don't collide by unchecking where the default line goes under the water on the top.)
Your answer
Follow this Question
Related Questions
How To how ?? 2 Answers
Collision or Triggers both not working. 3D. 1 Answer
[SOLVED]OverlapingSphere damage only one enemy 1 Answer
Collision With Text 0 Answers
Ignore collision based on position 1 Answer