Added constrains based on a quad

but it doenst work very well