How Forge Viewer's first person to roam forbids gravity

the new version of first person roaming provides gravity sensing, automatically finds the nearest floor, and starts roaming based on this floor. But sometimes you need to be able to roam freely in space without being affected by gravity. I don"t know how to prohibit gravity

Dec.13,2021

the user interface can switch between gravity and zero gravity by simply clicking the space bar.

if it's code:

//Extension
Viewer.loadExtension('Autodesk.BimWalk').then(function(res){res.tool.navigator.enableGravity(false)})
//Extensionextension.tool.navigator.enableGravity(false)

Shun: most of the features of viewerd are concentrated in Viewer3d.js, while extension, is included in extension. Some methods may not be included in the help documentation, but you can get your own extension, to see the properties provided or supported methods.

Menu