LLWalkAdjustMotion Class Reference

#include <llkeyframewalkmotion.h>

Inheritance diagram for LLWalkAdjustMotion:

Inheritance graph
[legend]
Collaboration diagram for LLWalkAdjustMotion:

Collaboration graph
[legend]
List of all members.

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 LLMotioncreate (const LLUUID &id)

Public Attributes

LLCharactermCharacter
LLJointmLeftAnkleJoint
LLJointmRightAnkleJoint
LLJointState mPelvisState
LLJointmPelvisJoint
LLVector3d mLastLeftAnklePos
LLVector3d mLastRightAnklePos
F32 mLastTime
F32 mAvgCorrection
F32 mSpeedAdjust
F32 mAnimSpeed
F32 mAvgSpeed
F32 mRelativeDir
LLVector3 mPelvisOffset
F32 mAnkleOffset

Detailed Description

Definition at line 88 of file llkeyframewalkmotion.h.


Constructor & Destructor Documentation

LLWalkAdjustMotion::LLWalkAdjustMotion ( const LLUUID id  ) 

Definition at line 142 of file llkeyframewalkmotion.cpp.

References mLastTime, and LLMotion::mName.

Referenced by create().


Member Function Documentation

static LLMotion* LLWalkAdjustMotion::create ( const LLUUID id  )  [inline, static]

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]

Implements LLMotion.

Definition at line 113 of file llkeyframewalkmotion.h.

virtual F32 LLWalkAdjustMotion::getEaseInDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 114 of file llkeyframewalkmotion.h.

virtual F32 LLWalkAdjustMotion::getEaseOutDuration (  )  [inline, virtual]

Implements LLMotion.

Definition at line 115 of file llkeyframewalkmotion.h.

virtual BOOL LLWalkAdjustMotion::getLoop (  )  [inline, virtual]

Implements LLMotion.

Definition at line 112 of file llkeyframewalkmotion.h.

References TRUE.

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.

BOOL LLWalkAdjustMotion::onUpdate ( F32  time,
U8 joint_mask 
) [virtual]

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.


Member Data Documentation

F32 LLWalkAdjustMotion::mAnimSpeed

Definition at line 133 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

F32 LLWalkAdjustMotion::mAnkleOffset

Definition at line 137 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

F32 LLWalkAdjustMotion::mAvgCorrection

Definition at line 131 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

F32 LLWalkAdjustMotion::mAvgSpeed

Definition at line 134 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

LLCharacter* LLWalkAdjustMotion::mCharacter

Definition at line 123 of file llkeyframewalkmotion.h.

Referenced by onActivate(), onDeactivate(), onInitialize(), and onUpdate().

LLVector3d LLWalkAdjustMotion::mLastLeftAnklePos

Definition at line 128 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

LLVector3d LLWalkAdjustMotion::mLastRightAnklePos

Definition at line 129 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

F32 LLWalkAdjustMotion::mLastTime

Definition at line 130 of file llkeyframewalkmotion.h.

Referenced by LLWalkAdjustMotion(), and onUpdate().

LLJoint* LLWalkAdjustMotion::mLeftAnkleJoint

Definition at line 124 of file llkeyframewalkmotion.h.

Referenced by onActivate(), onInitialize(), and onUpdate().

LLJoint* LLWalkAdjustMotion::mPelvisJoint

Definition at line 127 of file llkeyframewalkmotion.h.

Referenced by onInitialize(), and onUpdate().

LLVector3 LLWalkAdjustMotion::mPelvisOffset

Definition at line 136 of file llkeyframewalkmotion.h.

Referenced by onUpdate().

LLJointState LLWalkAdjustMotion::mPelvisState

Definition at line 126 of file llkeyframewalkmotion.h.

Referenced by onActivate(), onInitialize(), and onUpdate().

F32 LLWalkAdjustMotion::mRelativeDir

Definition at line 135 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().

LLJoint* LLWalkAdjustMotion::mRightAnkleJoint

Definition at line 125 of file llkeyframewalkmotion.h.

Referenced by onActivate(), onInitialize(), and onUpdate().

F32 LLWalkAdjustMotion::mSpeedAdjust

Definition at line 132 of file llkeyframewalkmotion.h.

Referenced by onActivate(), and onUpdate().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:12:03 2010 for Second Life Viewer by  doxygen 1.4.7