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
I need to focus on a node and reset the view to the starting point programmatically. At this moment this is not possible in VR because the library does not expose the camera, scene, renderer or controls methods.
I would like for these methods to be accessible, so I can change the camera's position.
The text was updated successfully, but these errors were encountered:
These items are not exposed because in VR/A-Frame mode the environment is not quite the same as for WebGL/ThreeJS.
This component offers a simple use case of the force-graph A-Frame component. For more sophisticated cases, you can always use the aframe-forcegraph-component and setup the A-Frame scene/camera/controls scaffolding yourself. I'd suggest this approach if your case is custom.
An alternative option, albeit slightly hacky, is to manipulate the A-Frame monitored DOM elements. For instance, to modify the camera position using this method, you can do something like:
I need to focus on a node and reset the view to the starting point programmatically. At this moment this is not possible in VR because the library does not expose the camera, scene, renderer or controls methods.
I would like for these methods to be accessible, so I can change the camera's position.
The text was updated successfully, but these errors were encountered: