diff options
| author | Seraph Linden <none@none> | 2011-04-03 13:56:55 -0400 |
|---|---|---|
| committer | Seraph Linden <none@none> | 2011-04-03 13:56:55 -0400 |
| commit | a47ea6c619d1b689478f9e41c87cb89c010273de (patch) | |
| tree | 0a30299a13e89db878f1c2b8837f79c1413d96ce /indra/newview/llphysicsmotion.cpp | |
| parent | cc2a813ce40a09bab230a62809f5ff21083a81f2 (diff) | |
Added breast sway (left-right).
Diffstat (limited to 'indra/newview/llphysicsmotion.cpp')
| -rw-r--r-- | indra/newview/llphysicsmotion.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/indra/newview/llphysicsmotion.cpp b/indra/newview/llphysicsmotion.cpp index 53809b4d19..43044e20ea 100644 --- a/indra/newview/llphysicsmotion.cpp +++ b/indra/newview/llphysicsmotion.cpp @@ -287,6 +287,31 @@ LLMotion::LLMotionInitStatus LLPhysicsMotionController::onInitialize(LLCharacter }
addMotion(motion);
}
+
+ // Breast Sway
+ {
+ controller_map_t controller;
+ controller["Mass"] = "Breast_Physics_Mass";
+ controller["Smoothing"] = "Breast_Physics_Smoothing";
+ controller["Gravity"] = "Breast_Physics_Gravity";
+ controller["Drag"] = "Breast_Physics_Drag";
+ controller["Damping"] = "Breast_Physics_LeftRight_Damping";
+ controller["MaxSpeed"] = "Breast_Physics_LeftRight_Max_Velocity";
+ controller["Spring"] = "Breast_Physics_LeftRight_Spring";
+ controller["Gain"] = "Breast_Physics_LeftRight_Gain";
+ LLPhysicsMotion *motion = new LLPhysicsMotion("Breast_Physics_LeftRight_Controller",
+ "",
+ "mChest",
+ character,
+ LLVector3(0,-1,0),
+ controller);
+ if (!motion->initialize())
+ {
+ llassert_always(FALSE);
+ return STATUS_FAILURE;
+ }
+ addMotion(motion);
+ }
// Butt Bounce
{
|
