import SpaceNavigator from '@mobilizing/library/js/Mobilizing/renderer/3D/three/input/SpaceNavigator.js'
SpaceNavigator
Extends:
Constructor Summary
Public Constructor | ||
public |
Member Summary
Public Members | ||
public | ||
public | data: {"enabled": boolean, "movementEnabled": boolean, "lookEnabled": boolean, "rollEnabled": boolean, "invertPitch": *, "fovEnabled": boolean, "fovMin": number, "fovMax": number, "rotationSensitivity": *, "movementEasing": *, "movementAcceleration": *, "fovSensitivity": *, "fovEasing": *, "fovAcceleration": *, "invertScroll": *} | |
public | fov: * | |
public | ||
public | fovEasing: * | |
public | ||
public | ||
public | gamepad: * | |
public | ||
public | invertScroll: * | |
public | movement: * | |
public | ||
public | ||
public | ||
public | ||
public | pitch: * | |
public | position: * | |
public | ||
public | ||
public | roll: * | |
public | rotation: * | |
public | ||
public | ||
public | ||
public | ||
public | ||
public | time: * | |
public | yaw: * |
Method Summary
Public Methods | ||
public | getPosition(scaleFactor: *): * | |
public | getQuaternion(): * | |
public | getRotation(): * | |
public | setup() | |
public | update() | |
public | updatePosition(dt: *) Movement | |
public | Rotation |
Private Methods | ||
private | getMovementVector(dt: *): * |
Inherited Summary
From class Component | ||
public | ||
public | context: * | |
public | events: * | |
public | id: * | |
public | name: * | |
private | _nexts: *[] | |
private | ||
public | byPass() | |
public | Adds a component to this chained component array | |
public | Returns the array of attached children components | |
public | off() Deactivate the component | |
public | on() Activate the component A call to this method calls the setup method if it has not been run yet | |
public | Run code after the update of all components is run This empty method is usually overriden to perform post-update actions for the component It is called periodically by an internal Mobilizing mechanism | |
public | preLoad() preLoad the component This empty method is usually overriden to perform preLoad actions for the component. | |
public | Run code before the update of all components is run This empty method is usually overriden to perform pre-update actions for the component It is called once per component by an internal Mobilizing mechanism | |
public | prepare() prepare the component This empty method is usually overriden to perform preparation actions for the component, from external process as a server. | |
public | setup() Set's up the component This empty method is usually overriden to perform setup actions for the component This is where all the initialization (such as adding event listeners)should be done It is called automatically by an internal Mobilizing mechanism and should thus not be called directly | |
public | update() Update the component This empty method is usually overriden to perform update actions for the component It is called periodically by an internal Mobilizing mechanism |
Public Constructors
public constructor() source
Override:
Component#constructorPublic Members
public data: {"enabled": boolean, "movementEnabled": boolean, "lookEnabled": boolean, "rollEnabled": boolean, "invertPitch": *, "fovEnabled": boolean, "fovMin": number, "fovMax": number, "rotationSensitivity": *, "movementEasing": *, "movementAcceleration": *, "fovSensitivity": *, "fovEasing": *, "fovAcceleration": *, "invertScroll": *} source
public fov: * source
public fovAcceleration: * source
public fovEasing: * source
public fovSensitivity: * source
public gamepad: * source
public initialRotation: * source
public invertScroll: * source
public movement: * source
public movementAcceleration: * source
public movementDirection: * source
public movementEasing: * source
public movementVelocity: * source
public pitch: * source
public position: * source
public prevFinalRotation: * source
public prevInitialRotation: * source
public roll: * source
public rotation: * source
public rotationSensitivity: * source
public spaceNavigator: * source
public time: * source
public yaw: * source
Public Methods
public getPosition(scaleFactor: *): * source
Params:
Name | Type | Attribute | Description |
scaleFactor | * |
Return:
* |
public getQuaternion(): * source
Return:
* |
public getRotation(): * source
Return:
* |
public setup() source
Set's up the component This empty method is usually overriden to perform setup actions for the component This is where all the initialization (such as adding event listeners)should be done It is called automatically by an internal Mobilizing mechanism and should thus not be called directly
Override:
Component#setuppublic update() source
Update the component This empty method is usually overriden to perform update actions for the component It is called periodically by an internal Mobilizing mechanism
Override:
Component#updatepublic updateRotation() source
Rotation