- Home /
Character Controller not ground object
Hello all ,
I am having a problem where I am using a character controller and there is a barrel . The character controller is assuming that the barrel is ground when the barrel needs to be pushed by the player and not considered as ground.
How can I fix that? Please help.
Regards
Answer by Harinezumi · Mar 05, 2018 at 02:29 PM
To push objects with CharacterController, you need to handle collisions in CharacterController.OnControllerColliderHit(). The example on the scripting reference is a good starting point, and I think you need to add the handler function to your CharacterController by calling characterController.OnControllerColliderHit += HandlerFunction
.
Your answer
Follow this Question
Related Questions
How to trigger different animations depending on where a gameobject collides? 1 Answer
OnCollisionEnter not working with CharacterController 1 Answer
Collision Detection in Capsule Collider 0 Answers
CharacterController collision detection with pendulum like object 0 Answers
Character Controller wont collide (not a trigger issue) 2 Answers