playMaker

Author Topic: Rigidbody2d Collision Detection on a child?  (Read 1200 times)

Ride

  • Playmaker Newbie
  • *
  • Posts: 7
Rigidbody2d Collision Detection on a child?
« on: December 25, 2014, 12:59:36 PM »
Hey guys,

I've got a scene with 3 objects. Large circle, small circle and the player.
The large has a rigidbody on it, and both have colliders on them, the large circle is the parent and the small one is the child of the large one.

When i collide the player with the large object i get all the collision info that i need.

However if I collide with the small object it still registers as if the players collided with the large circle and not the small one?

If I add a rigidbody to the small circle and collide with it it registers the small one but it detaches from the Large object.

If i set the small rigidbody to kinematic it almost works as intended, however forces/collisions on with the small one does not affect the large objects. The small one is also unmovable unless you affect the large one.

How do i fix this?
Let me know if anything is unclear and i'll take some screenshots.