Configurable joint asymmetrical limit

Hello,

I am attempting to create a physically interactive button to work in VR. This means that a simple button that can be pressed down by physics, using the player hand or any other physical object in the scene.

I am currently trying to limit the movement of the button with a configurable joint. It should only move up and down. From its starting position it should only move down. It should not be possible to push it upwards from its starting position.

Currently I have restricted the movement to only 1 axis (the local Y axis) and I am trying to use linear limit to limit its movement on the Y axis. However, that limit is symmetrical. So if the starting point of the button is at coordinate 3, and the limit is set to 0.1, its possible max and min coordinates are 3.1 and 2.9. However, since the button should only be pushable downwards from its starting position, the coordinates should be between 2.9 and 3.0. So after releasing the button from 2.9 it should spring back to 3.0.

Any help is much appreciated,
Thanks!

I want to know that as well…