Alright, kind of a weird question. I'm using Box2D with flash, making an (obviously) physics based game.
So in theory there will be a character that has an eye-ball attached to itself. Both the eye and the main body are circles (easy for Box2D's physics to handle those parts).
However, the eye is attached with a rigid 'curved' kind of neckline. The body rolls, and with it the eye will roll under it. See the diagram...

The 'neck' is kind of springy. From what I've read it will be dynamic, but "kinematic" (let me know if I'm using this word in the wrong way) meaning it will not collide with anything, but will simply keep the eye levitated.
Is there any way to simulate this using Box2D? I'm relatively new to Box2D but I have the basics down pretty firmly. Feel free to let me know of any alternatives.
AFAIK Box2D doesn't support any sort of curved lines or anything, so my best bet, at least in my head, will be to construct a sort of "rope" type construct that is really a bunch of rectangles jointed together (such as in the bridge example).
Another idea I had was somehow calculating where the eye needs to be (with a weird spring-ish sort of constraint that is NOT drawn, but simply calculated) and then just drawing a curved line (much like how Illustrator calculates the curved line with the arc-tool) each frame.
Is this possible, or should I modify the character (which I have no problem doing)? We have some other ideas on how this character will transport itself; however, this was one of the more humorous ideas we came up with! :]
Anyways, thanks in advance!
So in theory there will be a character that has an eye-ball attached to itself. Both the eye and the main body are circles (easy for Box2D's physics to handle those parts).
However, the eye is attached with a rigid 'curved' kind of neckline. The body rolls, and with it the eye will roll under it. See the diagram...

The 'neck' is kind of springy. From what I've read it will be dynamic, but "kinematic" (let me know if I'm using this word in the wrong way) meaning it will not collide with anything, but will simply keep the eye levitated.
Is there any way to simulate this using Box2D? I'm relatively new to Box2D but I have the basics down pretty firmly. Feel free to let me know of any alternatives.
AFAIK Box2D doesn't support any sort of curved lines or anything, so my best bet, at least in my head, will be to construct a sort of "rope" type construct that is really a bunch of rectangles jointed together (such as in the bridge example).
Another idea I had was somehow calculating where the eye needs to be (with a weird spring-ish sort of constraint that is NOT drawn, but simply calculated) and then just drawing a curved line (much like how Illustrator calculates the curved line with the arc-tool) each frame.
Is this possible, or should I modify the character (which I have no problem doing)? We have some other ideas on how this character will transport itself; however, this was one of the more humorous ideas we came up with! :]
Anyways, thanks in advance!