playMaker

Author Topic: CharacterController collision after disable/enable property.  (Read 1725 times)

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 713
    • Flashing Lights
CharacterController collision after disable/enable property.
« on: September 16, 2014, 02:22:26 PM »
Hi,

I'm having a little trouble with Charecter Controller enable/disable property.

Setup:
- 3D environment.
- Capsule with CharController comp + simple move.
- Dropping a cube with rigidbody component on character.

Using CollisionEnter to detect collision with rigidbody gameObject.
It works all good the first time, then after enable/disable Character controller wont detect any collisions.
Any tip for this how to correctly do this? Or its a bug?

I'm doing this when character goes to ragdoll and back, also for getting in car.

Checked with CharacterCollisionHit event, but this one detects the ground and goes in loops..

An idea for getting around this, is to set the CharController position -600 on Y axis for that "off" time for example..

Thank you for reading, any help/tip please?



[Unity 4.3.4f1 + PM 1.7.7.f6 on a Mac]
« Last Edit: September 16, 2014, 02:25:56 PM by 600 »