M MY Multiplayer: Wiki
Lado
Tipo

getCameraMatrix

Cliente

Devolve onde a câmera está e para onde olha.

vec3, vec3, float, float getCameraMatrix()

Retorno

A posição, o ponto para onde olha, a inclinação lateral em graus e o campo de visão em graus. Fora de setCameraMatrix, o ponto fica 1 m à frente da câmera.

Exemplo

local position, lookAt, roll, fov = getCameraMatrix()
outputDebugString(("Câmera em %.1f, %.1f, %.1f"):format(position.x, position.y, position.z))

Veja também