playMaker

Author Topic: Collider Event issue [SOLVED]  (Read 2778 times)

Alatriste

  • Full Member
  • ***
  • Posts: 195
Collider Event issue [SOLVED]
« on: January 19, 2014, 11:14:47 AM »
Hi, I'm just trying to send an event when two objects collide to each other but I cannot make it work. One of the objects is the player which has attached the box collider and the Rigidbody component. The other object has attached the same components and it has been tagged properly. Also both of them are in the axis. ( I can see both object colliding in the scene view).

I'm using the CollisionEvent component - OnCollisionEnter, but nothing has worked so far. What I'm doing wrong?  :-[

Thanks!
« Last Edit: January 21, 2014, 09:33:36 AM by Alatriste »

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Collider Event issue
« Reply #1 on: January 19, 2014, 06:56:04 PM »
Can you post a couple of screen grabs of your state logic and gameobject components in an exploded view?

Alatriste

  • Full Member
  • ***
  • Posts: 195
Re: Collider Event issue
« Reply #2 on: January 19, 2014, 07:33:39 PM »
Absolutely. Thanks for for posting. :)


redikann

  • Full Member
  • ***
  • Posts: 174
Re: Collider Event issue
« Reply #3 on: January 19, 2014, 07:42:55 PM »
Try switching your enemy hit event to a System event>On Collision Enter

Alatriste

  • Full Member
  • ***
  • Posts: 195
Re: Collider Event issue
« Reply #4 on: January 20, 2014, 10:12:18 PM »
I will try tonight and I will post if it does work.

Thanks!

failtruckz

  • Playmaker Newbie
  • *
  • Posts: 8
Re: Collider Event issue
« Reply #5 on: January 21, 2014, 05:23:12 AM »
If a Rigidbody is set to is Kinematic it will ignore OnCollision events.

Alatriste

  • Full Member
  • ***
  • Posts: 195
Re: Collider Event issue [SOLVED]
« Reply #6 on: January 21, 2014, 09:33:10 AM »
That was the problem: kinematic was on. As soon as I disable it it worked!

Thanks mate!