#include <llkeyframefallmotion.h>
Public Member Functions | |
LLKeyframeFallMotion (const LLUUID &id) | |
virtual | ~LLKeyframeFallMotion () |
virtual LLMotionInitStatus | onInitialize (LLCharacter *character) |
virtual BOOL | onActivate () |
virtual F32 | getEaseInDuration () |
virtual BOOL | onUpdate (F32 activeTime, U8 *joint_mask) |
Static Public Member Functions | |
static LLMotion * | create (const LLUUID &id) |
Protected Attributes | |
LLCharacter * | mCharacter |
F32 | mVelocityZ |
LLPointer< LLJointState > | mPelvisState |
LLQuaternion | mRotationToGroundNormal |
Definition at line 44 of file llkeyframefallmotion.h.
LLKeyframeFallMotion::LLKeyframeFallMotion | ( | const LLUUID & | id | ) |
Definition at line 51 of file llkeyframefallmotion.cpp.
References mCharacter, mVelocityZ, and NULL.
Referenced by create().
LLKeyframeFallMotion::~LLKeyframeFallMotion | ( | ) | [virtual] |
Definition at line 62 of file llkeyframefallmotion.cpp.
Reimplemented from LLKeyframeMotion.
Definition at line 61 of file llkeyframefallmotion.h.
References LLKeyframeFallMotion().
Referenced by LLVOAvatar::LLVOAvatar().
LLMotion::LLMotionInitStatus LLKeyframeFallMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 70 of file llkeyframefallmotion.cpp.
References LLKeyframeMotion::getJoint(), LLJoint::getName(), LLKeyframeMotion::JointMotionList::getNumJointMotions(), mCharacter, LLKeyframeMotion::mJointMotionList, LLKeyframeMotion::mJointStates, mPelvisState, and LLKeyframeMotion::onInitialize().
BOOL LLKeyframeFallMotion::onActivate | ( | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 94 of file llkeyframefallmotion.cpp.
References LLCharacter::getCharacterPosition(), LLCharacter::getCharacterRotation(), LLCharacter::getCharacterVelocity(), LLCharacter::getGround(), mCharacter, mRotationToGroundNormal, LLVector3::mV, mVelocityZ, LLVector3::normVec(), LLKeyframeMotion::onActivate(), LLQuaternion::transQuat(), and VZ.
F32 LLKeyframeFallMotion::getEaseInDuration | ( | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 138 of file llkeyframefallmotion.cpp.
References LLCharacter::getPreferredPelvisHeight(), mCharacter, and mVelocityZ.
Reimplemented from LLKeyframeMotion.
Definition at line 122 of file llkeyframefallmotion.cpp.
References clamp_rescale(), LLKeyframeMotion::getDuration(), mPelvisState, mRotationToGroundNormal, LLPointer< Type >::notNull(), LLKeyframeMotion::onUpdate(), and slerp().
LLCharacter* LLKeyframeFallMotion::mCharacter [protected] |
Reimplemented from LLKeyframeMotion.
Definition at line 76 of file llkeyframefallmotion.h.
Referenced by getEaseInDuration(), LLKeyframeFallMotion(), onActivate(), and onInitialize().
F32 LLKeyframeFallMotion::mVelocityZ [protected] |
Definition at line 77 of file llkeyframefallmotion.h.
Referenced by getEaseInDuration(), LLKeyframeFallMotion(), and onActivate().
LLPointer<LLJointState> LLKeyframeFallMotion::mPelvisState [protected] |