Rotate Multiple 3D Objects Independently

Hi all, this is my first post in the community.

I have a project I’m working on that requires me to create 2 3d models side my side that can be rotated left to right (and vice versa) independently of each other. I’ve observed multiple rotation scripts but they all seem to involve making use of the camera, which won’t work for me since I have more than one model on screen.

What I want is to be able to click and drag each model and rotate it along the X axis. I presume I’ll need some form of raycasting, but I’m a bit stumped trying to implement it.

Any help anyone can give me to start me off in the right direction is appreciated.

Are you looking for something like this?