Is it possible?
If there are two kinematic bodies draggable by user, and they shouldn't be overlapping (or atleast detect if they're overlapping).
I know by default that kinematic and static bodies ar colliding (dispatching collision event) only with dynamic bodies, but in this case I don't need dynamic body, because gravity is applied, and I need that body to stay in position where user put it.
Any interesting ideas are welcomed.
Comments
Likes: duke2017
Was experimenting with switching bodies from kinematic to dynamic on dragging, which was a bad idea.
Weding should be relatively easier. Thanks
actually found a much better way, simply do not use sensors if you need collisions. Use collision filters instead:
http://www.giderosmobile.com/DevCenter/index.php/Forum_FAQ#How_can_I_use_collision_filters.3F
But if you are interested in Welding joints, then you should use common point of both bodies, in your case their center (260,210) coordinates, like this:
http://appcodingeasy.com/Gideros-Mobile/Dragging-Box2d-object-in-Gideros-Mobile