Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/ui/modelview.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/ui/modelview.cc b/src/ui/modelview.cc
index 613382a..4ce388c 100755
--- a/src/ui/modelview.cc
+++ b/src/ui/modelview.cc
@@ -191,7 +191,12 @@ void ModelView::draw()
render::State::set_normalize(true);
- const float thrust = 1.0f;
+ float thrust = ::sinf(core::application()->time() * 0.5f);
+ if (thrust < 0.0f ) {
+ thrust = 1.0f + thrust;
+ } else {
+ thrust = 1.0f;
+ }
render::draw_model_fragments(model, core::localplayer()->color(), core::localplayer()->color_second(), core::application()->time(), true, true, thrust);