Rigidbody and Trigger Box Collider problem

Hi,

Here is my problem.

I have a 3dsmax model of house with two separate objects in it. Wall and Roof. I’ve placed Box Collider around this model and switch it to trigger mode. In my character I have capsula collider and rigidbody to handle complex collisions. In character controller script I have OnTriggerEnter and OnTriggerExit event hendlers to be able to hide Roof object in OnTriggerEnter and show in OnTriggerExit functions and this functionality works greate, but character physicaly collides with Tregger and don’t allow me to enter the house. How can I fix this problem? Thanx

The OnTriggerEnter and OnTriggerExit functions should be on the house, not the character controller.

OnTriggerEnter
if(what is entering me is a player) make the inside of the house appear.

OnTriggerExit
if(what is exiting me is a player) make the inside of the house disappear.

Yes I did it like you sead, but I still not able to move through box collider in tregger mode placed on house. How to fix this?

Your character is a rigidbody, or a character controller?

I don’t want to use standart character controller, so I used capsula collider with rigidbody twogether.

So, if your code specifically uses addfoce, or velocity change, then you are specifically using a physics based character model. This means that if you cannot go into what you think is a trigger… it is not a trigger. :wink: or, you have another object there that has a collider that it is hitting.

I use rigidbody only for gravity and don’t use addfoce, or velocity change. Exist only 3dmax model with Box Collider in Trigger mode attached. What can cause the problem?

Please any advice?

how do you move your rigidbody, other than letting the sim run, you have to use force or velocity to control the movement of your character?