Can I use mates function to simulate the physical dynamic in this case?

The RED trigger with BLUE plate moving in the slot of GREEN plate. The RED trigger then continuously moves and drives the GREEN plate rotates until meeting the wall.

I know it can be simulated by physical dynamics but can I use Mates instead?

SolidworksAssemblies