aboutsummaryrefslogtreecommitdiff
path: root/src/MTools
diff options
context:
space:
mode:
authorribet2008-03-17 13:53:08 +0000
committerribet2008-03-17 13:53:08 +0000
commit2f279dbca6f54856ed9569573f325acb309130b8 (patch)
treec8277c36787200cf178afe172aa055fc0190c9a3 /src/MTools
parent928723fe191cd01e91c7eddf8bc73fc62f54c837 (diff)
downloadmtc-2f279dbca6f54856ed9569573f325acb309130b8.zip
mtc-2f279dbca6f54856ed9569573f325acb309130b8.tar.gz
mtc-2f279dbca6f54856ed9569573f325acb309130b8.tar.bz2
mtc-2f279dbca6f54856ed9569573f325acb309130b8.tar.xz
Modification du seuil pour un effet plus naturel lors de l'arret de l'inertie, les seuils sont abaissés
Diffstat (limited to 'src/MTools')
-rw-r--r--src/MTools/Comp/MInertie.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MTools/Comp/MInertie.pm b/src/MTools/Comp/MInertie.pm
index 2faa1b9..c9cbbdd 100644
--- a/src/MTools/Comp/MInertie.pm
+++ b/src/MTools/Comp/MInertie.pm
@@ -138,7 +138,7 @@ sub inertie {
my $rate = $self -> mget ('rate');
$self -> {__vx} *= $rate;
$self -> {__vy} *= $rate;
- if ((abs $self -> {__vx} <= 2) and (abs $self -> {__vy} <= 2)) {
+ if ((abs $self -> {__vx} <= 1) and (abs $self -> {__vy} <= 1)) {
$self -> interrupt ();
return;
}