Repository

SpaceNavigator

Extends:

Component → SpaceNavigator

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
public
public
public
public
public
public
public
public
public
public
public

pitch: *

public
public
public
public

roll: *

public
public
public
public
public
public
public

time: *

public

yaw: *

Method Summary

Public Methods
public

getPosition(scaleFactor: *): *

public
public
public
public
public

Movement

public

Rotation

Private Methods
private

Inherited Summary

From class Component
public
public
public

events: *

public

id: *

public

name: *

private

_nexts: *[]

private
public
public

chain(component: Component)

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 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 the component This empty method is usually overriden to perform preparation actions for the component, from external process as a server.

public

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 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#constructor

Public Members

public connected: boolean source

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 fovVelocity: number 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 tCurrent: number source

public tLastExternalActivity: number source

public tLastLocalActivity: number source

public time: * source

public yaw: * source

Public Methods

public getPosition(scaleFactor: *): * source

Params:

NameTypeAttributeDescription
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#setup

public 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#update

public updatePosition(dt: *) source


Movement

Params:

NameTypeAttributeDescription
dt*

public updateRotation() source


Rotation

Private Methods

private getMovementVector(dt: *): * source

Params:

NameTypeAttributeDescription
dt*

Return:

*