James,
It is connected with the camera.
var worldLocation = viewer.Camera.CameraWorldLocation;
And I believe this is the key calculation which is called from the Update() process. The above is also part of the Update() process.
var temp = new WorldLocation(worldLocation.TileX, worldLocation.TileZ, worldLocation.Location.X + (float)((Viewer.Random.NextDouble() - 0.3) * ParticleBoxLengthM), 0, worldLocation.Location.Z + (float)((Viewer.Random.NextDouble() - 0.3) * ParticleBoxWidthM));
James,
It is connected with the camera.
var worldLocation = viewer. Camera. CameraWorldLoca tion;
And I believe this is the key calculation which is called from the Update() process. The above is also part of the Update() process.
var temp = new WorldLocation( worldLocation. TileX, worldLocation. TileZ, worldLocation. Location. X + (float) ((Viewer. Random. NextDouble( ) - 0.3) * ParticleBoxLeng thM), 0, worldLocation. Location. Z + (float) ((Viewer. Random. NextDouble( ) - 0.3) * ParticleBoxWidt hM));