new MovementModel()

Members


springStrength :number

Description
Strength of the interaction spring

drag :number

Description
Drag applied to post-interaction velocity

poleBufferThreshold :number

Description
Threshold around the poles that the movement model will spring back from, in degrees

panDeltaScale :number

Description
Scale factor applied to panning.

velocityDeltaScale :number

Description
Scale factor applied to pan velocity.

currentLatLonAlt :Array

Description
Current latitude, longitude, and altitude held by movement model

Methods


<package> register( ambientController, animationController, interactionController )

Description
Registers ambient, animation, and interaction controllers for use
Parameters
Name Type Description
ambientController AmbientController ambient controller
animationController AnimationController animation controller
interactionController InteractionController interaction controller

<package> resize( width, height, aspect, fov )

Description
Resizes the params for the movement model
Parameters
Name Type Description
width number
height number
aspect number
fov number

setLatLonAlt( lat, lon, alt )

Description
Immediately sets the latitdue, longitude, and altitude
Parameters
Name Type Description
lat number Latitude
lon number Longitude
alt number Altitude

setLatLon( lat, lon )

Description
Immediately sets the latitdue and longitude
Parameters
Name Type Description
lat number Latitude
lon number Longitude

setAlt( alt )

Description
Immediately sets the altitude
Parameters
Name Type Description
alt number Altitude

<package> update( time, fov )

Description
Updates based on the tick
Parameters
Name Type Description
time number Time since start
fov number Field of view

<package> startPan( event )

Description
Handle the startPan event
Parameters
Name Type Description
event Event Event coming in from InteractionController

<package> continuePan( event )

Description
Handle the continuePan event
Parameters
Name Type Description
event Event Event coming in from InteractionController

<package> endPan( event )

Description
Handle the endPan event
Parameters
Name Type Description
event Event Event coming in from InteractionController