Added volume for debug purpose. Temporary fixed fast time.

This commit is contained in:
Jonas Strandstedt
2014-09-25 17:17:11 +02:00
parent 8042111ffe
commit c526c0f38d
4 changed files with 21 additions and 13 deletions

View File

@@ -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') {

View File

@@ -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));

View File

@@ -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);