Class: Movement

bu.street.movements. Movement

An absctract class that define a way to modify bu.street.Viewer camera params over time creating the sensation of a movement in the viewer. A bu.street.Viewer usually do not change camera position, only yaw, pitch, roll and fov, but in certain circumstances, as when transitioning from one hotpsot to another, it could be useful to unlock this limitations to allow a full movement of the camera for introducing cool effects.


new Movement(opts)

Parameters:
Name Type Description
opts bu.street.movements.MovementOptions

Object with options.

Source:
bu-street/movements/movement.js

Extends

  • ol.Object

Methods


initialize()

Initializes values to start movement.

Source:
bu-street/movements/movement.js

step(params, currentTime)

Modify camera params.

Parameters:
Name Type Description
params Object

Camera params.

currentTime Number

Time in milliseconds.

Source:
bu-street/movements/movement.js
Returns:

New camera params modified.

Type
Object