- Home /
collision between character controllers
please is there currently a way to register collisions between two character controllers or do we still have to improvise, thanks
Answer by YoungDeveloper · Aug 10, 2013 at 09:04 PM
Ordinary OncollisionEnter won't work on character controller, you must use OnControllerColliderHit.
Unityscript
function OnControllerColliderHit (hit : ControllerColliderHit) {
....
C#
void OnControllerColliderHit(ControllerColliderHit hit) {
....
http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnControllerColliderHit.html
I am talking about collision between two characterControllers not characterController and rigid body, thanks for your answer
@ Original Poster. Collisions with Character Controllers require OnControllerColliderHit, regardless if it is charcont and rigidbody, or charcont and charcont. Answer is legit. Google 'Unity Script Reference'. Once you get there, look up OnControllerColliderHit. This is the solution you are looking for. Happy developing!
I've tried it and it didn't work, it works only on rigidbodies and other collider, guess i will have to improvise :-(
There is nothing to improvise, create another game object, attach it to other player, reset it ( will auto center to player location) and attach capsule collider to it, scale it, add tag and done.
Your answer

Follow this Question
Related Questions
Collision on character controller (fps player) 2 Answers
Detect Side of Collision 2 Answers
Manual Collision Detection... 2 Answers
Particle Collision / Trigger not being reported to On_xx Event 1 Answer
Full Performance On Melee Combat 0 Answers