Mating a "bumper"

Hi.


I've got a mating situation I've never run into before and I'm hoping someone can help me figure out how to model this.

I have an assembly with a carriage that's pushed forward and back on a linear track by an actuator.  The carriage has a sub-carriage that can move vertically, and toward the end of the main carriage's stroke the sub-carriage is forced up a ramp that lies parallel to the track by a wheel attached to the sub-carriage.

I would like to be able to model a pin that rotates under the sub-carriage to keep it elevated during the return stroke of the main carriage.  In essence, I'd be deploying a bumper that would prevent gravity from allowing the wheel to travel back down the ramp, and keep the sub carriage elevated.

I can't figure out how to do this with the mates available to me in SW.  It seems to require a mate that would be aware of the relative positions of the mated parts, which I don't see how to do.  (ie: limit the range of motion of a component when another component is on one side of a line, but not when it's on the other)  Anyone have any suggestions?

Thanks,

-Ben

SolidworksAssemblies