playMaker

Author Topic: "Mouse pick 2d event" doesn't work with Edge Collider 2D?  (Read 939 times)

Caro

  • Playmaker Newbie
  • *
  • Posts: 22
"Mouse pick 2d event" doesn't work with Edge Collider 2D?
« on: June 10, 2019, 05:41:49 AM »
It works with box, capsule and circle collider 2D but not Edge Collider 2D.

Polygon Collider works so I can use it for now, but it's giving me more work in modifying an already complex shape.

Can anyone help me? Thank you :)
« Last Edit: June 10, 2019, 05:44:03 AM by Caro »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: "Mouse pick 2d event" doesn't work with Edge Collider 2D?
« Reply #1 on: June 10, 2019, 08:18:10 AM »
Hi.
Edge collider is a line, so you would need to click exactly on the line to trigger (if it triggers at all)

If you make a close shape with the edge collider, the inside of the shape is not colliding.

You can use a empty parent/child to make a simplified shape or edit the existing one.