How do i pivot an object with the mouse

I’m looking to make a 3D labrinth game and i need the board to pivot from the center of the object how do i achieve this? i want the mouse to pivot a plan basically.

just parent the camera to a object, and rotate it with the mouselook


vertex parent the camera center to the player?

It’s ok i figured it out, i would post the code but it’s too long. Thanks for your help tho.