How can the default navigation speed be changed in the Forge Viewer? The default setting is far to fast for my sample models. I should like to write code so that the speed may be changed during a session.
相关问题
- Model Derivative API Post Job - 400 Bad Request “I
- Forge Viewer loading multiple Revit models with sh
- How can I load only specifc objects in the forge v
- Upload linked Revit models for Forge Viewer
- JS error on Chrome (with Device Toolbar enable)
相关文章
- How to resize on object - Autodesk Forge Viewer
- How to Show/View or Read .dwg files on browser
- Autodesk Viewer: Suggestions for 2D view of floor
- Decals not displaying in Autodesk Viewer
- Default Navigation speed in Forge Viewer
- Autodesk Forge viewer renders only single page for
- Getting webGL error in autodesk viewer
- How to set custom properties for an object via its
I recently found out that you can use
viewer.navigation.fitBounds(true, THREE.Box3)
which will impact the navigation speed to match the extends defined by those bounds.Copy an existing navigation tool from the viewer3D.js implementation, modify the speed parameters as you wish or expose methods to do so dynamically from your app, then set it active.
You can check the implementation of OrbitDollyPanTool L#14545 in viewer3D.js
That tool is instantiated as follow (L#40923):