Add event to toggle JWST trail when approaching or going away

This commit is contained in:
Malin E
2022-02-17 09:30:15 +01:00
parent 275f04425c
commit e30e9ee4cc
3 changed files with 93 additions and 1 deletions
@@ -693,6 +693,8 @@ void RenderableModel::update(const UpdateData& data) {
glm::compMax(data.modelTransform.scale)
);
setInteractionSphere(_boundingSphere);
if (_geometry->hasAnimation() && !_animationStart.empty()) {
double relativeTime;
double now = data.time.j2000Seconds();