'Restricting the motion of hands in y axis with LeapMotion Unity API

I am handling hand tracking using the LeapMotion Unity package [1]. However, the documentation and samples do not have any information on how can I restrict the motion of the hands in one axis (y axis in my case).

Is this possible?

[1] https://docs.ultraleap.com/unity-api/unity-user-manual/hands-module.html



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source