aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcharacter/lljoint.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcharacter/lljoint.cpp')
-rw-r--r--linden/indra/llcharacter/lljoint.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/linden/indra/llcharacter/lljoint.cpp b/linden/indra/llcharacter/lljoint.cpp
index 6141cc0..07c34a8 100644
--- a/linden/indra/llcharacter/lljoint.cpp
+++ b/linden/indra/llcharacter/lljoint.cpp
@@ -485,39 +485,6 @@ void LLJoint::setSkinOffset( const LLVector3& offset )
485 mSkinOffset = offset; 485 mSkinOffset = offset;
486} 486}
487 487
488//-----------------------------------------------------------------------------
489// setConstraintSilhouette()
490//-----------------------------------------------------------------------------
491void LLJoint::setConstraintSilhouette(LLDynamicArray<LLVector3>& silhouette)
492{
493 S32 i;
494
495 mConstraintSilhouette.reset();
496 for (i = 0; i < silhouette.count(); i++)
497 {
498 if (i % 2 == 1)
499 {
500 // skip normals
501 continue;
502 }
503 mConstraintSilhouette[i / 2] = silhouette[i];
504 }
505 LLQuaternion inv_parent_rotation = LLQuaternion::DEFAULT;
506
507 if (getParent())
508 {
509 inv_parent_rotation = ~getParent()->getWorldRotation();
510 }
511
512 for (i = 0; i < mConstraintSilhouette.count(); i++)
513 {
514 LLVector3 vert = mConstraintSilhouette[i];
515
516 vert -= getWorldPosition();
517 vert.normVec();
518 vert = vert * inv_parent_rotation;
519 }
520}
521 488
522//----------------------------------------------------------------------------- 489//-----------------------------------------------------------------------------
523// clampRotation() 490// clampRotation()