Hi.
I have two bodies each with a single fixture.
They are attached by a revolute joint.
The first body is essentially a rectangle, the second a circle. The represent an animal - the rectangle is the body, the circle the head, viewed side-on.
The revolute joint has lower and upper angle limits set (so the head can rotate to look up and down, but not turn upside-down.
It works fine and dandy, the head nodding daintily as the animal crosses the terrain.
But the head caused some collision problems, so I decided to make it a sensor - removing the collision issues.
As soon as I do so, the angle limits for the head seem to be applied to the whole body, so now when the animal goes down a hill, he does so on his back legs only (i.e. the rectangle refuses to rotate further than the limits set on the revolute joint)
I can't really understand why this would be the case; It may be fixable (possibly by making the sensor a fixture on the main body rather than a body of its own?) but I wondered if anyone had any insights or suggestions of how best to resolve this?
Thanks heaps.
I have two bodies each with a single fixture.
They are attached by a revolute joint.
The first body is essentially a rectangle, the second a circle. The represent an animal - the rectangle is the body, the circle the head, viewed side-on.
The revolute joint has lower and upper angle limits set (so the head can rotate to look up and down, but not turn upside-down.
It works fine and dandy, the head nodding daintily as the animal crosses the terrain.
But the head caused some collision problems, so I decided to make it a sensor - removing the collision issues.
As soon as I do so, the angle limits for the head seem to be applied to the whole body, so now when the animal goes down a hill, he does so on his back legs only (i.e. the rectangle refuses to rotate further than the limits set on the revolute joint)
I can't really understand why this would be the case; It may be fixable (possibly by making the sensor a fixture on the main body rather than a body of its own?) but I wondered if anyone had any insights or suggestions of how best to resolve this?
Thanks heaps.