- Home /
One way ignoring collision
I use Physics.IgnoreCollision to ignore collision, but what if I want A to not ignore B but B to ignore A? (like clothes is Unity 5)
Could you clarify what you mean by one directional ignore collision? Should A and B never overlap? In what situations can they overlap?
This doesn't make sense to me. Can you give further explanations of how you intend this to work?
Sounds like you are going to have to implement something custom.
So object A's position is calculated with raycast and and rigidbody.$$anonymous$$ovePosition(). It should be like non physical object that is only in players "imagination" and other objects should ignore it.
Answer by Oribow · Sep 23, 2014 at 03:51 PM
You must find a way to clarify the object wich gave the intention to collide. Something like: check wich of booth objects had more speed or wich has been moved by the player or so one.
Object A is always in coordinates calculated by script and it always gives intention. And how does that help me? I still don't know how B could ignore A.
Your answer
![](https://koobas.hobune.stream/wayback/20220613163617im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
One way rigidbody collisions 1 Answer
How can I make a character bounce? 1 Answer
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
GameState Script Problem 0 Answers
How to activate GUI button only if somethings true? 1 Answer