Pivot Joint Anchor Placement
Posted: Fri Feb 26, 2016 5:38 am
Imagine a rectangle with the dimensions w400 h100. It's attached to body is at x100 y100. I also have a circle with position x0 y0 and a radius of 30. How can I attach this wheel in a, you know, rotatable way to the right, bottom corner of the rectangle.
I generally think a Pivot Joint would be the correct solution for that (it's also one of the few joints that's supported in the golang port which I'm using btw). But what is the correct setup for the anchors to locate the wheel at the exact corner?
I've tried setting relative and world coordinates but it always leads to really weird results...
I generally think a Pivot Joint would be the correct solution for that (it's also one of the few joints that's supported in the golang port which I'm using btw). But what is the correct setup for the anchors to locate the wheel at the exact corner?
I've tried setting relative and world coordinates but it always leads to really weird results...