This question already has an answer here:
I'm making a top down shooter with Three.js and Box2d. I'm displaying all of the graphics in 3d, but all of the physics are done in 2d, so it's sort of like super smash bros in a way.
Anyway, how can I make the player (a simple cube) rotate towards the mouse position? I've tried googling around, but I can't find much.