threepipe
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ThreeFirstPersonControlsPlugin.ts 499B

12345678910
  1. import {ACameraControlsPlugin} from '../base/ACameraControlsPlugin'
  2. import {TControlsCtor} from '../../core'
  3. import {FirstPersonControls2} from '../../three'
  4. export class ThreeFirstPersonControlsPlugin extends ACameraControlsPlugin {
  5. public static readonly PluginType = 'ThreeFirstPersonControlsPlugin'
  6. readonly controlsKey = 'threeFirstPerson'
  7. protected _controlsCtor: TControlsCtor = (object, domElement) => new FirstPersonControls2(object, domElement || document.documentElement)
  8. }