- Home /
How to create a semi-passable barrier
Hey there, I have following question: For a little game i make i want to create a wall where only allowed object may pass though. So for example a spawn where only allied team may pass through. Or a mobile shield where players can pass though but bullets will collide with.
Is there a common way to create such a thing?
Answer by corpsinheretoo · Jan 24, 2018 at 12:53 PM
There totally is a system for that. Edit>project settings>physics. That panel will have a triangular-shaped set of checkboxes which control which layers collide with which. Look up how to make custom layers (it is easy) and then go nuts :)
Your answer
Follow this Question
Related Questions
How to calculate the impulse in 2D physics? (Collision.impulse equivalent) 0 Answers
Only collide with an object from the side 1 Answer
OnDestroy collision detect 4 Answers
Lay a Sphere on a Point 3 Answers