Question by
joethephish · Nov 30, 2020 at 10:03 AM ·
physics2d
Limit Physics2d collider to depth range?
Is it possible to limit a physics2d collider so that it only collides with other colliders when they are within a certain range of each other in Z? Basically so I can do layering, but without naming individual layers? (The world has almost infinite Z range since you can move "in and out of the screen" lots of times.)
I saw that Physics2D.Linecast has minDepth/maxDepth, but it doesn't seem to exist as a property on colliders/rigid bodies?
Comment
Your answer
Follow this Question
Related Questions
Collision sticking? 1 Answer
Raycast doesnt work with any resolution 0 Answers
Rigidbody rotate velocity 0 Answers
TouchInput in Update. Physics in FixedUpdate. Lag and Lost calls? 1 Answer