It looks like you're new here. If you want to get involved, click one of these buttons!
Recently as some of you may have noticed, I have been working with physics a great deal. I just started joints, and I was wondering if there was any way to disable collisions for objects that are indirectly connected together? I.E. I have a rectangle connected to another rectangle via a WELD joint, and another rectangle connected to the second rectangle via a rotating joint. Is there any way to make is so that the first rectangle does not collide with the last? Thank you!
Comments
@TheSolderKing look into the
categories
andmask
fields onphysics.body
http://codea.io/reference/Physics.html#physics.body(Edit: speaking of which, we should upgrade this API to use bit masks now that integers are native in Lua)
@Simeon you never responded to my post about making the box2d property collideConnected available within codea. In a project i am working on i would like that the jointed objects do collide with each other.
Sorry @piinthesky, I must have forgotten. Can you log that one on the issue tracker? That will ensure I get around to it.
toadkick had already added a ticket, but i don't think it is fixed yet.
https://bitbucket.org/TwoLivesLeft/core/issue/278/allow-setting-collideconnected-flag-for
See also this thread
http://codea.io/talk/discussion/4320/prismatic-joints
@Simeon I'm in need of this functionality too. As @John said on Issue tracker:
I assume he means it will be an extra option within the physics.joint function?
Thanks @piinthesky, @Luatee, will see if we can add this soon.