Hi,
I´ve just tried to use this functions (which really work), but they don´t give me the result that i want.
I have an object (door) with a sphere Collider (active) with the parameter “Is trigger” activated. And when my player get into it it should give me a response (a simple Debug.Log message).
It does when the player´s collider make a collision with the door´s collider, but he cannot cross the collider of the door because there is a collision between them which don´t let him do so.
I mean, i want that the collider of the object let the player be inside it, but i only know how to do that by disabling the collider, so does the OnTrigger function too.
Is there any way to get this done?
Thanks in advance,
GC
It’s hard to know what is happening with so few info about your scene and scripts but it seems that you have more than one collider on your door.
When you add a primitive (e.g. spheres and cubes) to the scene it comes with its respective collider. Try inspecting your objects to see if there is an extra collider enabled in your door objects.
Thanks for the quick answer.
I thought it was enough info, but i will try to explain myself better.
The object door is an empty object with the script and a Collider and with 2 plane-child which have their collider (always activated to make the real “obstacle” and collisions).
This way the collider of the “door” would be used only as a trigger.
![alt text](http://fotos.subefotos.com/012311be2da7dcfb64371d77b9245548o.png)
But i think that the problem isn´t there because i tried by simply using a box with its collider and it also doesn´t work.
What i really want is to have a simple collider as a trigger wich every other objects could cross without collisioning with it. Maybe this sentence in bold resumes what my goal is better.
Thanks again,
EDIT:
I think i found a patch solution for the problem.
My colliders looked like this before.
![alt text](http://fotos.subefotos.com/aec989892291783b9de7a30bfd524c49o.png)
So now, i made a “carpet-collider” (as i call it) which allows the player to cross and at the same time make collision.
![alt text](http://fotos.subefotos.com/4736b6ae79857c440a4298423c42132fo.png)