#Matrix Coords Rotation
7 messages · Page 1 of 1 (latest)
A couple of things about your code: (1) you don't need to call getWorldPosition every time; (2) you don't need to set every element of the camera's position separately. This could be written slightly shorter but this is likely clearest:
const world_position = new THREE.Vector3();
camera.position.copy(player.getWorldPosition(world_position));
Oh, I see. In that case:
const camera_offset = new THREE.Vector3(0, 5, 0);
const world_position = new THREE.Vector3();
camera.position.copy(player.getWorldPosition(world_position).add(camera_offset));
well if you want to play a 🤓 then it should be
player.getWorldPosition(camera.position)
lol he finally noticed and removed his message, but we've got screens
https://cdn.discordapp.com/attachments/804170068396605450/1152290513119084636/93107a1d4d3ef574.png
Bro ok?
I mean your 'mock the people needing help' game is spot on, but... maybe not the best game to be playing?