Sorry, we don't support your browser.  Install a modern browser
This post is closed.

add function **getCamera()** in Player class and rename lookAt() to setCamera()#166

J

Dear Tabletop Simulator team,

I’m suggesting to add a function to the Player class for getting the camera parameters. In essence, this is a get function opposite to the existing lookAt({params}) function.
Together all those camera angles and values would enable new kinds of games where the script “knows” where the players are looking exactly.

new Player Class function: getCamera()

Player["White"].getCamera()

-- Example returned Table
{
    position = {x=0,y=0,z=0},
    pitch    = 25,
    yaw      = 180,
    distance = 20,
}

Additionally I suggest to:

  • rename the function lookAt to setCamera({params})
  • add a getCameraMode() function
5 years ago
Merged into Player[color].camera methods#40
5 years ago