prismarine-viewer
prismarine-viewer copied to clipboard
Lock camera on player
You can pan around the world with the right mouse button, but that is also the button to move.
The right mouse button would become an offsetter, with the camera being at playerPos + offset
EDIT: Ctrl/Shift + right is also pan
With orbit controls you can set .target equal to the Vector3 position of the player, so when you rotate the map that becomes the center point.