A "neckline", or line with rigidity (Explanation within)

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...

Image

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!
Any ideas on how to do this? I'm still stumped :/
Use collision filtering!
Build the stalk out of a few segments (4 rectangles or what not) and joints, filter collisions so the stalk cannot collide with the circles or it's self.

Quote:
Filtering
Collision filtering is a system for preventing collision between fixtures. For example, say you make a character that rides a bicycle. You want the bicycle to collide with the terrain and the character to collide with the terrain, but you don't want the character to collide with the bicycle (because they must overlap). Box2D supports such collision filtering using categories and groups.
Wouldn't the stalk stand upright?
Read the documentation and check out the testbed demos, one of the demos is a spring board made of segments, best of luck mate 😉
I'm on a flash version but I'll download + compile the C++ version to take a look :] thank you! This definitely helped!

Original thread: https://box2d.org/forum/viewtopic.php?t=6740