#include <lltargetingmotion.h>
Public Member Functions | |
LLTargetingMotion (const LLUUID &id) | |
virtual | ~LLTargetingMotion () |
virtual BOOL | getLoop () |
virtual F32 | getDuration () |
virtual F32 | getEaseInDuration () |
virtual F32 | getEaseOutDuration () |
virtual LLJoint::JointPriority | getPriority () |
virtual LLMotionBlendType | getBlendType () |
virtual F32 | getMinPixelArea () |
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 |
LLPointer< LLJointState > | mTorsoState |
LLJoint * | mPelvisJoint |
LLJoint * | mTorsoJoint |
LLJoint * | mRightHandJoint |
Definition at line 49 of file lltargetingmotion.h.
LLTargetingMotion::LLTargetingMotion | ( | const LLUUID & | id | ) |
Definition at line 54 of file lltargetingmotion.cpp.
References mCharacter, LLMotion::mName, mTorsoState, and NULL.
Referenced by create().
LLTargetingMotion::~LLTargetingMotion | ( | ) | [virtual] |
Definition at line 67 of file lltargetingmotion.cpp.
Reimplemented from LLMotion.
Definition at line 66 of file lltargetingmotion.h.
References LLTargetingMotion().
Referenced by LLVOAvatar::LLVOAvatar().
virtual BOOL LLTargetingMotion::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLTargetingMotion::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLTargetingMotion::getEaseInDuration | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 80 of file lltargetingmotion.h.
References TARGETING_EASEIN_DURATION.
virtual F32 LLTargetingMotion::getEaseOutDuration | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 83 of file lltargetingmotion.h.
References TARGETING_EASEOUT_DURATION.
virtual LLJoint::JointPriority LLTargetingMotion::getPriority | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 86 of file lltargetingmotion.h.
References TARGETING_PRIORITY.
virtual LLMotionBlendType LLTargetingMotion::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 88 of file lltargetingmotion.h.
References LLMotion::ADDITIVE_BLEND.
virtual F32 LLTargetingMotion::getMinPixelArea | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 91 of file lltargetingmotion.h.
References MIN_REQUIRED_PIXEL_AREA_TARGETING.
LLMotion::LLMotionInitStatus LLTargetingMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 74 of file lltargetingmotion.cpp.
References LLMotion::addJointState(), LLCharacter::getJoint(), llendl, llwarns, mCharacter, mPelvisJoint, mRightHandJoint, mTorsoJoint, mTorsoState, LLJointState::ROT, LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
BOOL LLTargetingMotion::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 112 of file lltargetingmotion.cpp.
References LLQuaternion::constrain(), F_PI_BY_TWO, LLCharacter::getAnimationData(), LLCriticalDamp::getInterpolant(), LLJoint::getRotation(), LLJoint::getWorldRotation(), mCharacter, mRightHandJoint, mTorsoJoint, mTorsoState, nlerp(), LLVector3::normVec(), LLVector3::setVec(), TORSO_TARGET_HALF_LIFE, and TRUE.
void LLTargetingMotion::onDeactivate | ( | ) | [virtual] |
Definition at line 113 of file lltargetingmotion.h.
Referenced by LLTargetingMotion(), onInitialize(), and onUpdate().
Definition at line 114 of file lltargetingmotion.h.
Referenced by LLTargetingMotion(), onInitialize(), and onUpdate().