PrismarineJS/prismarine-viewer

Lock camera on player #97

3top1a posted onGitHub

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.

posted by extremeheat over 4 years ago

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests