Hi!
i want to fixate two bodies too eachother through the use of a joint.
i thought that i should be using the pin joint, but it gives wierd results.
the effect im after is that i want the two objects to seem like a single object.
i tested with the pivot joint and that works as expected.
"combining" objects with joints
-
- Posts: 13
- Joined: Tue Sep 25, 2007 9:24 am
- Contact:
-
- Posts: 2
- Joined: Mon Jun 29, 2009 8:22 am
- Contact:
Re: "combining" objects with joints
The pin joint is like fixing a rod/bar between the two objects with the end points of this "rod" being the points you specify. As you found out much better to use a pivot joint for this.
-
- Posts: 157
- Joined: Mon Aug 20, 2007 12:53 pm
- Location: London, UK
- Contact:
Re: "combining" objects with joints
It's usually better to add the shapes of the two bodies to one body instead. That'll be faster and more stable.
Some people have faked it using two crossed pin joints.
Some people have faked it using two crossed pin joints.
-
- Posts: 13
- Joined: Tue Sep 25, 2007 9:24 am
- Contact:
Re: "combining" objects with joints
how hard would it be to add a new joint?
i am working on a physics editor, so adding the shapes to a shared body will complicate other tools, and using crossed pins just seems hackish
seems wierd that a fixed joint isnt implemented ; they exist in every other physics lib
i am working on a physics editor, so adding the shapes to a shared body will complicate other tools, and using crossed pins just seems hackish
seems wierd that a fixed joint isnt implemented ; they exist in every other physics lib
- slembcke
- Site Admin
- Posts: 4166
- Joined: Tue Aug 14, 2007 7:13 pm
- Contact:
Re: "combining" objects with joints
It wouldn't really be that hard to add, but locking multiple objects together using a joint is most certainly going to be more "hackish" than putting them together on the same body. The reason is that it takes extra CPU time to make the joint work, and on top of that constraining two bodies together like that will never be as solid.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
Who is online
Users browsing this forum: No registered users and 21 guests