I would like to control my camera with the mouse, similar to how it works in games like Minecraft or Roblox.
Basically, I want the camera to rotate around when I move the mouse, so the player can look around freely.
I’m not sure how to set this up in PlayCanvas. Should I use a script for the camera entity, or is there a built-in method for mouse look? Also, in my playerLook.js script, the camera only rotates up and down, but not left and right. Why is that?
Hi, if it move up and down and not left and right maybe you tied the mouse movement to the wrong camera axis, but it’s just a guess without see the code. I think there is a tutorial somewhere to male the camera rotate around an object. Not sure where though.
It’s wrong the concept, when you move the mouse the camera just tilt up and down, also changing the axis it would just tilt left and right. you want that to move around the circonference of an imaginary circle around the house always facing the house. So you have to find a project that do something similar: More semplified version you can have the house rotate.