#include <llkeyframewalkmotion.h>
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 |
LLPointer< 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, LLMotion::mName, and mPelvisState.
Referenced by create().
Reimplemented from LLMotion.
Definition at line 101 of file llkeyframewalkmotion.h.
References LLWalkAdjustMotion().
Referenced by LLVOAvatar::LLVOAvatar().
LLMotion::LLMotionInitStatus LLWalkAdjustMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Implements LLMotion.
Definition at line 153 of file llkeyframewalkmotion.cpp.
References LLMotion::addJointState(), LLCharacter::getJoint(), LLMotion::getName(), llendl, llwarns, mCharacter, mLeftAnkleJoint, mPelvisJoint, mPelvisState, mRightAnkleJoint, LLJointState::POS, LLMotion::STATUS_FAILURE, and LLMotion::STATUS_SUCCESS.
BOOL LLWalkAdjustMotion::onActivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 176 of file llkeyframewalkmotion.cpp.
References LLCharacter::getCharacterPosition(), LLCharacter::getPosGlobalFromAgent(), LLJoint::getWorldPosition(), llmax(), mAnimSpeed, mAnkleOffset, mAvgCorrection, mAvgSpeed, mCharacter, mLastLeftAnklePos, mLastRightAnklePos, mLeftAnkleJoint, mPelvisState, mRelativeDir, mRightAnkleJoint, mSpeedAdjust, TRUE, and LLVector3::zero.
void LLWalkAdjustMotion::onDeactivate | ( | ) | [virtual] |
Implements LLMotion.
Definition at line 343 of file llkeyframewalkmotion.cpp.
References mCharacter, and LLCharacter::removeAnimationData().
Implements LLMotion.
Definition at line 198 of file llkeyframewalkmotion.cpp.
References DRIFT_COMP_MAX_SPEED, DRIFT_COMP_MAX_TOTAL, LLCharacter::getCharacterAngularVelocity(), LLCharacter::getCharacterVelocity(), LLCriticalDamp::getInterpolant(), LLCharacter::getPosGlobalFromAgent(), 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(), LLVector3::setVec(), SPEED_ADJUST_MAX, SPEED_ADJUST_MAX_SEC, TRUE, VX, VY, VZ, and LLVector3::zero.
virtual LLJoint::JointPriority LLWalkAdjustMotion::getPriority | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 111 of file llkeyframewalkmotion.h.
References LLJoint::HIGH_PRIORITY.
virtual BOOL LLWalkAdjustMotion::getLoop | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getDuration | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getEaseInDuration | ( | ) | [inline, virtual] |
virtual F32 LLWalkAdjustMotion::getEaseOutDuration | ( | ) | [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 LLMotionBlendType LLWalkAdjustMotion::getBlendType | ( | ) | [inline, virtual] |
Implements LLMotion.
Definition at line 117 of file llkeyframewalkmotion.h.
References LLMotion::ADDITIVE_BLEND.
Definition at line 123 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onDeactivate(), onInitialize(), and onUpdate().
Definition at line 124 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onInitialize(), and onUpdate().
Definition at line 125 of file llkeyframewalkmotion.h.
Referenced by onActivate(), onInitialize(), and onUpdate().
Definition at line 126 of file llkeyframewalkmotion.h.
Referenced by LLWalkAdjustMotion(), onActivate(), onInitialize(), and onUpdate().
Definition at line 127 of file llkeyframewalkmotion.h.
Referenced by onInitialize(), and onUpdate().
Definition at line 130 of file llkeyframewalkmotion.h.
Referenced by LLWalkAdjustMotion(), and onUpdate().