#include <llkeyframewalkmotion.h>
Inheritance diagram for LLWalkAdjustMotion:
Public Member Functions | |
LLWalkAdjustMotion (const LLUUID &id) | |
virtual LLMotionInitStatus | onInitialize (LLCharacter *character) |
virtual BOOL | onActivate () |
virtual void | onDeactivate () |
virtual BOOL | onUpdate (F32 time, U8 *joint_mask) |
virtual LLJoint::JointPriority | getPriority () |
virtual BOOL | getLoop () |
virtual F32 | getDuration () |
virtual F32 | getEaseInDuration () |
virtual F32 | getEaseOutDuration () |
virtual F32 | getMinPixelArea () |
virtual LLMotionBlendType | getBlendType () |
Static Public Member Functions | |
static LLMotion * | create (const LLUUID &id) |
Public Attributes | |
LLCharacter * | mCharacter |
LLJoint * | mLeftAnkleJoint |
LLJoint * | mRightAnkleJoint |
LLJointState | mPelvisState |
LLJoint * | mPelvisJoint |
LLVector3d | mLastLeftAnklePos |
LLVector3d | mLastRightAnklePos |
F32 | mLastTime |
F32 | mAvgCorrection |
F32 | mSpeedAdjust |
F32 | mAnimSpeed |
F32 | mAvgSpeed |
F32 | mRelativeDir |
LLVector3 | mPelvisOffset |
F32 | mAnkleOffset |
Definition at line 88 of file llkeyframewalkmotion.h.
LLWalkAdjustMotion::LLWalkAdjustMotion | ( | const LLUUID & | id | ) |
Definition at line 142 of file llkeyframewalkmotion.cpp.
References mLastTime, and LLMotion::mName.
Referenced by create().
Reimplemented from LLMotion.
Definition at line 101 of file llkeyframewalkmotion.h.
References LLWalkAdjustMotion().
Referenced by LLVOAvatar::LLVOAvatar().
virtual LLMotionBlendType LLWalkAdjustMotion::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 117 of file llkeyframewalkmotion.h.
References LLMotion::ADDITIVE_BLEND.
virtual F32 LLWalkAdjustMotion::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getEaseInDuration | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getEaseOutDuration | ( | ) | [inline, virtual] |
virtual BOOL LLWalkAdjustMotion::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getMinPixelArea | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 116 of file llkeyframewalkmotion.h.
References MIN_REQUIRED_PIXEL_AREA_WALK_ADJUST.
virtual LLJoint::JointPriority LLWalkAdjustMotion::getPriority | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 111 of file llkeyframewalkmotion.h.
References LLJoint::HIGH_PRIORITY.
BOOL LLWalkAdjustMotion::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 174 of file llkeyframewalkmotion.cpp.
References LLCharacter::getCharacterPosition(), LLCharacter::getPosGlobalFromAgent(), LLJoint::getWorldPosition(), llmax(), mAnimSpeed, mAnkleOffset, mAvgCorrection, mAvgSpeed, mCharacter, mLastLeftAnklePos, mLastRightAnklePos, mLeftAnkleJoint, mPelvisState, mRelativeDir, mRightAnkleJoint, mSpeedAdjust, LLJointState::setPosition(), TRUE, and LLVector3::zero.
void LLWalkAdjustMotion::onDeactivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 341 of file llkeyframewalkmotion.cpp.
References mCharacter, and LLCharacter::removeAnimationData().
LLMotion::LLMotionInitStatus LLWalkAdjustMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 151 of file llkeyframewalkmotion.cpp.
References LLMotion::addJointState(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llwarns, mCharacter, mLeftAnkleJoint, mPelvisJoint, mPelvisState, mRightAnkleJoint, LLJointState::POS, LLJointState::setJoint(), LLJointState::setUsage(), LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
Implements LLMotion.
Definition at line 196 of file llkeyframewalkmotion.cpp.
References DRIFT_COMP_MAX_SPEED, DRIFT_COMP_MAX_TOTAL, f, LLCharacter::getCharacterAngularVelocity(), LLCharacter::getCharacterVelocity(), LLCriticalDamp::getInterpolant(), LLJointState::getJoint(), LLCharacter::getPosGlobalFromAgent(), LLJoint::getPosition(), LLJointState::getPosition(), LLCharacter::getTimeDilation(), LLJoint::getWorldPosition(), LLJoint::getWorldRotation(), lerp(), llclamp(), llmin(), LLVector3::magVec(), mAnimSpeed, mAnkleOffset, mAvgCorrection, mAvgSpeed, MAX_TIME_DELTA, MAX_WALK_PLAYBACK_SPEED, mCharacter, mLastLeftAnklePos, mLastRightAnklePos, mLastTime, mLeftAnkleJoint, mPelvisJoint, mPelvisOffset, mPelvisState, mRelativeDir, mRightAnkleJoint, mSpeedAdjust, LLVector3::mV, LLVector3::normVec(), LLCharacter::setAnimationData(), LLJointState::setPosition(), LLVector3::setVec(), SPEED_ADJUST_MAX, SPEED_ADJUST_MAX_SEC, TRUE, VX, VY, VZ, and LLVector3::zero.
Definition at line 123 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onDeactivate(), onInitialize(), and onUpdate().
Definition at line 130 of file llkeyframewalkmotion.h.
Referenced by LLWalkAdjustMotion(), and onUpdate().
Definition at line 124 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onInitialize(), and onUpdate().
Definition at line 127 of file llkeyframewalkmotion.h.
Referenced by onInitialize(), and onUpdate().
Definition at line 126 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onInitialize(), and onUpdate().
Definition at line 125 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onInitialize(), and onUpdate().