Hi to all,
I have a player with CharacterCollider with it, and it collides with the Box chollider and it moves from the possible path after collusion(if we force it to move). But the functions
OnCollusionEnter or OnCollusionStay does not executes.
I also tried the Trigger functions after making the box collider to be isTrigger true;
OnTriggerEnter or OnTriggerStay … they also do not execute. the player simply passes through collider but these functions don’t execute in case of trigger as well.
am I doing anything wrong.??
thanks in advance for help…
You mean OnCollisionEnter. “Collusion” means something else entirely.
–Eric
thanks for reply
yes … the box and character do not collide.
one thing more
I am executing these functions in the script of my player that have CharacterCollider.
Look at the documentation about colliders here.
–Eric
I studied the documentation. there is not mentioned about colliding with CharacterController.
and
I used some rigid body to collide with a CharacterController of a Box. I used once with box and once with CharacterController. but no collision detected.
any idea to do it… I need this CharacterController with the player to move it.
thanks
Are you using the CharacterController’s Move or SimpleMove function to move it? If you move it by changing the transform.position value (say with transform.Translate), the collision detection won’t work. Also, you should use OnControllerColliderHit to get collisions from the character’s script.
thanks andeeee. I was using Move statement to move…
and OnControllerColliderHit worked for me…
thanks so much