extendsGroup
Base class for the 3D controller models.
Properties
loaded: Promise<void>
Resolves once the model has loaded.
Methods
new ControllerModel(
// The model file.
url: string | URL
)setButton( name: string, value: number ): voidShows a button pressed, from 0 to 1.
setAxis( name: string, value: number ): voidShows a stick axis pushed, from -1 to 1.
setFromController( controller: Controller ): voidShows a controller's current state.
getTilt( target: Vector3 ): Vector3Gets the turning force the current presses apply to the controller, for tilting it slightly.
dispose(): voidFrees the model's geometry, materials and textures.