diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-03-18 16:04:28 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-03-18 16:04:28 -0400 |
commit | 86613fd388d7985abc814ee8ee52da54fd74779e (patch) | |
tree | 08e74b89b69e21ce0d610af851e155831bf66380 /indra/newview/llphysicsmotion.cpp | |
parent | d55f816fb15eab67abb72997b2eb589fff16f4ee (diff) |
Variety of fixes for param ranges.
Turned off normal/binormal effects for morphing.
Fixed issue where updates were always being sent even if below the change threshold.
Diffstat (limited to 'indra/newview/llphysicsmotion.cpp')
-rw-r--r-- | indra/newview/llphysicsmotion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llphysicsmotion.cpp b/indra/newview/llphysicsmotion.cpp index eb128e043c..c9a75784e1 100644 --- a/indra/newview/llphysicsmotion.cpp +++ b/indra/newview/llphysicsmotion.cpp @@ -309,7 +309,7 @@ LLMotion::LLMotionInitStatus LLPhysicsMotionController::onInitialize(LLCharacter "",
"mChest",
character,
- LLVector3(0,0,1),
+ LLVector3(0,0,-1),
controllers_belly_bounce);
if (!belly_bounce_motion->initialize())
return STATUS_FAILURE;
@@ -337,7 +337,7 @@ F32 LLPhysicsMotion::toLocal(const LLVector3 &world) LLVector3 dir_world = mMotionDirectionVec * rotation_world;
dir_world.normalize();
- return world * dir_world * mMotionDirectionVec.length(); // dot product
+ return world * dir_world;
}
F32 LLPhysicsMotion::calculateVelocity_local(const F32 time_delta)
@@ -625,7 +625,7 @@ BOOL LLPhysicsMotion::onUpdate(F32 time) }
*/
- return TRUE;
+ return update_visuals;
}
// Range of new_value_local is assumed to be [0 , 1] normalized.
|