playMaker

Author Topic: Get Collision Info not getting contact point? [Solved]  (Read 3818 times)

markinjapan

  • Full Member
  • ***
  • Posts: 103
Get Collision Info not getting contact point? [Solved]
« on: October 17, 2012, 10:56:43 AM »
Hi

I'm sending a Collision Event to a Get Collision Info but I'm not getting any data at all after the Collision Event triggers. It could just be me but I'm using it in the same way I do to get Get Trigger/Raycast info and they work fine.

To give you more details, I'm using:

On Controller Collider Hit
With a Collide Tag

All I'm getting is 0,0,0 vectors for both Contact Point and Contact Normal.

Thanks

Mark

[Solved] it!

After looking through Unity's reference I found out that you need a non kinematic rigidbody on a character controller (moving via Move) to get the information.

I also had to use a Sphere Collider and use On Collision Enter. For some reason the collider on the Controller won't work for collisions.

Hope that helps someone, took me awhile to figure it out :(
 
« Last Edit: October 17, 2012, 11:39:45 AM by markinjapan »