Skip to content

Comments

Expose updateCamera as camera.update#19

Open
wyqydsyq wants to merge 1 commit intoregl-project:masterfrom
wyqydsyq:feature/update-camera
Open

Expose updateCamera as camera.update#19
wyqydsyq wants to merge 1 commit intoregl-project:masterfrom
wyqydsyq:feature/update-camera

Conversation

@wyqydsyq
Copy link

@wyqydsyq wyqydsyq commented Jan 5, 2020

Enables updating the camera externally (e.g. in response to your own keybindings, gyro input etc) like:

   camera.update({
      theta: state.player.position.r / 100,
      center: [state.player.position.x, 600, state.player.position.y],
    })

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant