mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-03-03 10:58:34 -06:00
Added volume for debug purpose. Temporary fixed fast time.
This commit is contained in:
Submodule openspace-data updated: 66d2872808...1eeafe77a9
@@ -353,15 +353,23 @@ void InteractionHandler::keyboardCallback(int key, int action) {
|
||||
if (key == SGCT_KEY_F) {
|
||||
PowerScaledScalar dist(speed * dt, 0.0);
|
||||
distance(dist);
|
||||
}
|
||||
if (key == SGCT_KEY_T) {
|
||||
PowerScaledScalar dist(-speed * 100.0 * dt, 0.0);
|
||||
distance(dist);
|
||||
}
|
||||
if (key == SGCT_KEY_G) {
|
||||
PowerScaledScalar dist(speed * 100.0 * dt, 0.0);
|
||||
distance(dist);
|
||||
}
|
||||
}
|
||||
if (key == SGCT_KEY_T) {
|
||||
PowerScaledScalar dist(-speed * 100.0 * dt, 0.0);
|
||||
distance(dist);
|
||||
}
|
||||
if (key == SGCT_KEY_G) {
|
||||
PowerScaledScalar dist(speed * 100.0 * dt, 0.0);
|
||||
distance(dist);
|
||||
}
|
||||
if (key == SGCT_KEY_Y) {
|
||||
PowerScaledScalar dist(-speed * 100.0 * dt, 2.0);
|
||||
distance(dist);
|
||||
}
|
||||
if (key == SGCT_KEY_H) {
|
||||
PowerScaledScalar dist(speed * 100.0 * dt, 2.0);
|
||||
distance(dist);
|
||||
}
|
||||
}
|
||||
/*
|
||||
if (key == '1') {
|
||||
|
||||
@@ -65,14 +65,14 @@ SimpleSphereGeometry::SimpleSphereGeometry(const ghoul::Dictionary& dictionary)
|
||||
else
|
||||
_radius = radius;
|
||||
|
||||
int segments;
|
||||
double segments;
|
||||
success = dictionary.getValueSafe(keySegments, segments);
|
||||
if (!success) {
|
||||
LERROR("SimpleSphereGeometry of '" << name << "' did not provide a key '"
|
||||
<< keySegments << "'");
|
||||
}
|
||||
else
|
||||
_segments = segments;
|
||||
_segments = static_cast<int>(segments);
|
||||
|
||||
addProperty(_radius);
|
||||
_radius.onChange(std::bind(&SimpleSphereGeometry::createSphere, this));
|
||||
|
||||
@@ -169,7 +169,7 @@ void RenderEngine::postSynchronizationPreDraw()
|
||||
// Move time forward.
|
||||
//_runtimeData->advanceTimeBy(1, DAY);
|
||||
|
||||
_runtimeData->advanceTimeBy(1, HOUR);
|
||||
//_runtimeData->advanceTimeBy(1, HOUR);
|
||||
//_runtimeData->advanceTimeBy(30, MINUTE);
|
||||
//_runtimeData->advanceTimeBy(1, MILLISECOND);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user