scripts/modelAnimation.js
/**
 * Model Simulator Constructor
 * @param {GEPlugin} ge The Google Earth Instance to run the simulator in
 */
Model Simulator Constructor
@param {GEPlugin} ge The Google Earth Instance to run the simulator in
Model Simulator Constructor @param { GEPlugin } ge The Google Earth Instance to run the simulator in
function ModelSimulator(ge) {
	this.ge = ge;
	this.doAnimation = false;
	this.speed = 1; 
	this.pathDetails = []; 
	this.kmzModelPlacemark = null; 
	this.elapsedStepTime = 0;
	this.geStepIndex = 0;
	this.currentSpeed = 0;
	this.frameCount = 0;
	this.cameraIndex = 0;
	this.cameras = [];
	this.requiredTravelTime = 0;
	this.totalTime = 0;
	this.populateInitialCameras();
 }
function ModelSimulator ( ge ) { this . ge = ge ; this . doAnimation = false ; this . speed = 1 ; this . pathDetails = [ ] ; this . kmzModelPlacemark = null ; this . elapsedStepTime = 0 ; this . geStepIndex = 0 ; this . currentSpeed = 0 ; this . frameCount = 0 ; this . cameraIndex = 0 ; this . cameras = [ ] ; this . requiredTravelTime = 0 ; this . totalTime = 0 ; this . populateInitialCameras ( ) ; }
Model Simulator Constructor
 @param {GEPlugin} ge The Google Earth Instance to run the simulator in
Model Simulator Constructor @param { GEPlugin } ge The Google Earth Instance to run the simulator in
//General Setup //Multiplier controlling the speed the simulation runs at //Route details, populated in routeCreation.js //Model to simulate, assigned in modelCreation.js //Store the current state of the simulation as it progresses //Camera Variables /* Note: while totalTime is incremented as a simulation runs, it is not otherwise utilized in the Google Earth Model Simulator v1.0.
	 * It is simply included for future use */ //Prepare the Simulation to begin