playMaker

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

600

  • Sr. Member
  • ****
  • Posts: 491
    • View Profile
    • Car and Traffic Playmaker assets
CharacterController collision after disable/enable property.
« on: September 16, 2014, 11:22:26 AM »
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, 11:25:56 AM by 600 »