Rigidbody + OnTriggerEnter

Hi,

I`m try to detect an event with OnTriggerEnter with my fpsRigidbody character, but it seems that
OnTriggerEnter(objectCollided : Collider){} does not identify the object when pass trough the trigger, and isTrigger is activated.

Does anybody have any ideia, its diferent to detect events with ontriggerEnter when using rigidbodys?

Thanks!

I wouldn’t see where that would affect the OnTriggerEvent, however shouldn’t your rigidbody character have a collider that is not a trigger?

You can get around this by adding an empty game object and giving it your trigger. You will need to add a script to that, that does what your need or tells the parent object’s script that it did something.

Actually ive done exactly what youve said. I`ve created an empty game object and atached an box collider activating is trigger, maded my script for camera changes

var Camera1 : Camera;
var Camera2 : Camera;
var Camera3 : Camera;
var Camera4 : Camera;
var jogador : GameObject;
var contador : int = 1;

function Update(){
	
	jogador = GameObject.FindWithTag("Player");
	
}

function Awake(){
	Camera1.enabled = true;
	Camera2.enabled = false;
	Camera3.enabled = false;
	Camera4.enabled = false;
}

function OnTriggerEnter(objectCollided : Collider){
	
	if(objectCollided == jogador){
		
		Camera1.enabled = false;
		contador ++;
	}
		
	if(objectCollided == jogador  contador == 2){
			
		Camera1.enabled = false;
		Camera2.enabled = true;
		contador ++;
	}
		
	if(objectCollided == jogador  contador == 3){
			
		Camera2.enabled = false;
		Camera3.enabled = true;
		contador ++;
	}
		
	if(objectCollided == jogador  contador == 4){
			
		Camera3.enabled = false;
		Camera4.enabled = true;
		contador = 1;
			
	}
}

[CODE]

Ok thanks i think i`ve found my problem.