Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Prismatic joints

edited December 2013 in General Posts: 1,595

How do I stop 2 bodies with a prismatic joint from not colliding with each other? Is there a way to stop it just passing through?

Comments

  • JohnJohn Admin Mod
    Posts: 641

    This isn't supported right now but I'll look at adding it to the next release. Because of how Box2D works it would need to be set in the constructor.

  • Posts: 1,595

    @John Ah :( I'll have to make a workaround for now, I think its a parameter called collideConnected which is set to false by default.

  • JohnJohn Admin Mod
    Posts: 641

    @Luatee: yes this is the property that controls it but it is readonly by default. I'm adding the ability to set this when you create the joint.

  • Posts: 1,595

    Thanks @John!

  • Posts: 580

    I've created a ticket for this:
    https://bitbucket.org/TwoLivesLeft/core/issue/278/allow-setting-collideconnected-flag-for

    This time, I'm pretty sure it hasn't been fixed yet :D

  • Posts: 1,595

    @toadkick Thanks! Haha I think it will get fixed for the next version :P

  • Posts: 573

    did the collideConnected property become accessible in the new version of Codea? It would be very useful.

  • dave1707dave1707 Mod
    Posts: 8,740

    @piinthesky It can be set to true or false, so maybe it's fixed.

  • Posts: 573

    yes that is true, but it does not seem to work for me. Also it is not documented in the in-editor reference manual.

  • dave1707dave1707 Mod
    Posts: 8,740

    I'm starting to see that also. I'm still playing around with it to see if it works.

  • Posts: 1,595

    @dave1707 it's not currently a parameter for physics.body, hopefully it will be added soon.

  • edited March 2015 Posts: 573

    @simeon, @John, i notice in the issue tracker it says...

    JohnTLL
    changed component to Physics
    Due to the way Box2D works this won't be settable on joints after they are created but there will be an option in the constructor.
    2013-12-23

    what is the constructor? does this mean there is a way to activate this property?

Sign In or Register to comment.