This patch improves the current state of manipulating the camera from JS.
As of now the camera can be manipulated using calls such as Engine.SetCameraData, this patch improves the current states as follows.
- JS can now manipulate camera rotation, camera zoom and pivot position
- JS can now manipulate camera properties through getters and setters on the camera object
This patch is presented to stir a conversation. It is enough for my needs to set a default rotation in game
but it presents some questions.
The game does not currently have a native camera object, would this be used elsewhere? Can camera jumps
be implemented as Engine.setCamera(c) where c is a native camera object?
This patch also improves the current developer experience. JS developers come from the web background
and expect some form of objects to be available and their runtime representation be connected to the native
counterpart. Is this something we want also for the engine?