#include <llheadrotmotion.h>
Public Member Functions | |
LLHeadRotMotion (const LLUUID &id) | |
virtual | ~LLHeadRotMotion () |
virtual BOOL | getLoop () |
virtual F32 | getDuration () |
virtual F32 | getEaseInDuration () |
virtual F32 | getEaseOutDuration () |
virtual F32 | getMinPixelArea () |
virtual LLJoint::JointPriority | getPriority () |
virtual LLMotionBlendType | getBlendType () |
virtual LLMotionInitStatus | onInitialize (LLCharacter *character) |
virtual BOOL | onActivate () |
virtual BOOL | onUpdate (F32 time, U8 *joint_mask) |
virtual void | onDeactivate () |
Static Public Member Functions | |
static LLMotion * | create (const LLUUID &id) |
Public Attributes | |
LLCharacter * | mCharacter |
LLJoint * | mTorsoJoint |
LLJoint * | mHeadJoint |
LLJoint * | mRootJoint |
LLJoint * | mPelvisJoint |
LLPointer< LLJointState > | mTorsoState |
LLPointer< LLJointState > | mNeckState |
LLPointer< LLJointState > | mHeadState |
LLQuaternion | mLastHeadRot |
Definition at line 47 of file llheadrotmotion.h.
LLHeadRotMotion::LLHeadRotMotion | ( | const LLUUID & | id | ) |
Definition at line 78 of file llheadrotmotion.cpp.
References mHeadState, LLMotion::mName, mNeckState, and mTorsoState.
Referenced by create().
LLHeadRotMotion::~LLHeadRotMotion | ( | ) | [virtual] |
Definition at line 96 of file llheadrotmotion.cpp.
Reimplemented from LLMotion.
Definition at line 64 of file llheadrotmotion.h.
References LLHeadRotMotion().
Referenced by LLVOAvatar::LLVOAvatar().
virtual BOOL LLHeadRotMotion::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLHeadRotMotion::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLHeadRotMotion::getEaseInDuration | ( | ) | [inline, virtual] |
virtual F32 LLHeadRotMotion::getEaseOutDuration | ( | ) | [inline, virtual] |
virtual F32 LLHeadRotMotion::getMinPixelArea | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 84 of file llheadrotmotion.h.
References MIN_REQUIRED_PIXEL_AREA_HEAD_ROT.
virtual LLJoint::JointPriority LLHeadRotMotion::getPriority | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 87 of file llheadrotmotion.h.
References LLJoint::MEDIUM_PRIORITY.
virtual LLMotionBlendType LLHeadRotMotion::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 89 of file llheadrotmotion.h.
References LLMotion::NORMAL_BLEND.
LLMotion::LLMotionInitStatus LLHeadRotMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 103 of file llheadrotmotion.cpp.
References LLMotion::addJointState(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llinfos, LLQuaternion::loadIdentity(), mCharacter, mHeadJoint, mHeadState, mLastHeadRot, mNeckState, mPelvisJoint, mRootJoint, mTorsoJoint, mTorsoState, LLJointState::ROT, LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
BOOL LLHeadRotMotion::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 184 of file llheadrotmotion.cpp.
References LLQuaternion::constrain(), LLQuaternion::DEFAULT, LLCharacter::getAnimationData(), LLCriticalDamp::getInterpolant(), LLJoint::getWorldRotation(), HEAD_LOOKAT_LAG_HALF_LIFE, HEAD_ROTATION_CONSTRAINT, lerp(), LLVector3::magVecSquared(), mCharacter, mHeadState, MIN_HEAD_LOOKAT_DISTANCE, mLastHeadRot, mNeckState, mPelvisJoint, mRootJoint, mTorsoState, LLVector3::mV, NECK_LAG, nlerp(), LLVector3::normVec(), TORSO_LAG, TORSO_LOOKAT_LAG_HALF_LIFE, TRUE, and VZ.
void LLHeadRotMotion::onDeactivate | ( | ) | [virtual] |
Definition at line 120 of file llheadrotmotion.h.
Referenced by LLHeadRotMotion(), onInitialize(), and onUpdate().
Definition at line 121 of file llheadrotmotion.h.
Referenced by LLHeadRotMotion(), onInitialize(), and onUpdate().
Definition at line 122 of file llheadrotmotion.h.
Referenced by LLHeadRotMotion(), onInitialize(), and onUpdate().