yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06580
[Branch ~yade-dev/yade/trunk] Rev 2613: 1. Deleted isDynamic from Translation Engine
------------------------------------------------------------
revno: 2613
committer: Anton Gladky <gladky.anton@xxxxxxxxx>
branch nick: yade
timestamp: Mon 2010-12-20 14:42:48 +0100
message:
1. Deleted isDynamic from Translation Engine
modified:
pkg/common/TranslationEngine.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/common/TranslationEngine.cpp'
--- pkg/common/TranslationEngine.cpp 2010-11-19 12:06:23 +0000
+++ pkg/common/TranslationEngine.cpp 2010-12-20 13:42:48 +0000
@@ -22,7 +22,6 @@
assert(id<(Body::id_t)scene->bodies->size());
Body* b=Body::byId(id,scene).get();
if(!b) continue;
- if (!b->isDynamic()) b->state->pos+=dt*velocity*translationAxis;
b->state->vel=velocity*translationAxis;
}
}
@@ -38,7 +37,6 @@
Body* b=Body::byId(id,scene).get();
if(!b) continue;
b->state->vel=velocity;
- if (!b->isDynamic()) b->state->pos+=dt*velocity;
}
}