You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the title says I can't figure out how I'm supposed to update the camera externally from my consuming code. From the README it seems like you're supposed to just mutate properties of the camera function or on the arguments returned in the callback block, but in all my attempts the properties are all mostly undefined and updating them doesn't have any effect.
Looking at the source it seems like this is due to the fact all of these externally exposed properties are being copied by value rather than reference.
I have found a work-around for this by exposing the updateCamera method for external code to call which is available in my fork, but I wanted to know if there's a "correct" way to do this without modifying the library, or is this module intended to be purely internal state?
The text was updated successfully, but these errors were encountered:
As the title says I can't figure out how I'm supposed to update the camera externally from my consuming code. From the README it seems like you're supposed to just mutate properties of the
camera
function or on the arguments returned in the callback block, but in all my attempts the properties are all mostlyundefined
and updating them doesn't have any effect.Looking at the source it seems like this is due to the fact all of these externally exposed properties are being copied by value rather than reference.
I have found a work-around for this by exposing the
updateCamera
method for external code to call which is available in my fork, but I wanted to know if there's a "correct" way to do this without modifying the library, or is this module intended to be purely internal state?The text was updated successfully, but these errors were encountered: