Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model stops animating when setting the clock backwards #3932

Closed
lilleyse opened this issue May 18, 2016 · 0 comments
Closed

Model stops animating when setting the clock backwards #3932

lilleyse opened this issue May 18, 2016 · 0 comments

Comments

@lilleyse
Copy link
Contributor

It's possible that I'm doing something wrong here. Here's a code snippet.

var viewer = new Cesium.Viewer('cesiumContainer', {
    infoBox : false,
    selectionIndicator : false
});

var cesiumAirEntity = viewer.entities.add({
    position : Cesium.Cartesian3.fromRadians(-1.31968, 0.698874, 100.0),
    name : 'Cesium Air',
    height : 20.0,
    model : {
        uri : '../../SampleData/models/CesiumAir/Cesium_Air.glb'
    }
});

viewer.trackedEntity = cesiumAirEntity;

viewer.clock.currentTime = new Cesium.JulianDate(2457522.154792);

// Set time backwards after 2 seconds. Setting time forward works.
window.setTimeout(function() {
    viewer.clock.currentTime = new Cesium.JulianDate(2457422.154792);
}, 2000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant