three-story-controls

Home > three-story-controls > ThreeDOFControlsProps

ThreeDOFControlsProps interface

Properties that can be passed to the ThreeDOFControls constructor

Signature:

export interface ThreeDOFControlsProps 

Properties

Property Type Description
dampingFactor? number (Optional) Damping factor between 0 and 1. Defaults to 0.7
domElement? HTMLElement (Optional) DOM element that should listen for pointer events. Defaults to document.body
panFactor? number (Optional) Mutiplier for panning. Defaults to Math.PI / 20
pedestalFactor? number (Optional) Mutiplier for pedestal translation. Defaults to 1
tiltFactor? number (Optional) Mutiplier for tilting. Defaults to Math.PI / 20
truckFactor? number (Optional) Mutiplier for truck translation. Defaults to 1