summaryrefslogtreecommitdiff
path: root/legacy/ephysics
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2012-10-08 18:00:55 +0000
committerBruno Dilly <bdilly@profusion.mobi>2012-10-08 18:00:55 +0000
commit3db5bdd77120032c0bd9f92ca0ac9e559e85ca95 (patch)
tree252d1d8766d3287fec4c0dd515ae91887da153ee /legacy/ephysics
parent8a014153d437e9f41f15b6bdc72dd083c5f1447e (diff)
ephysics: re-activate body when velocity is set
SVN revision: 77584
Diffstat (limited to 'legacy/ephysics')
-rw-r--r--legacy/ephysics/src/lib/ephysics_body.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/legacy/ephysics/src/lib/ephysics_body.cpp b/legacy/ephysics/src/lib/ephysics_body.cpp
index 4fd499ae15..7e532e21cd 100644
--- a/legacy/ephysics/src/lib/ephysics_body.cpp
+++ b/legacy/ephysics/src/lib/ephysics_body.cpp
@@ -438,6 +438,7 @@ _ephysics_body_sleeping_threshold_set(EPhysics_Body *body, double linear_thresho
438static inline void 438static inline void
439_ephysics_body_linear_velocity_set(EPhysics_Body *body, double x, double y, double rate) 439_ephysics_body_linear_velocity_set(EPhysics_Body *body, double x, double y, double rate)
440{ 440{
441 ephysics_body_activate(body, EINA_TRUE);
441 body->rigid_body->setLinearVelocity(btVector3(x / rate, -y / rate, 0)); 442 body->rigid_body->setLinearVelocity(btVector3(x / rate, -y / rate, 0));
442} 443}
443 444