#include <llkeyframefallmotion.h>
Inheritance diagram for LLKeyframeFallMotion:
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 |
LLJointState * | mPelvisStatep |
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().
F32 LLKeyframeFallMotion::getEaseInDuration | ( | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 135 of file llkeyframefallmotion.cpp.
References f, LLCharacter::getPreferredPelvisHeight(), mCharacter, and mVelocityZ.
BOOL LLKeyframeFallMotion::onActivate | ( | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 94 of file llkeyframefallmotion.cpp.
References f, LLCharacter::getCharacterPosition(), LLCharacter::getCharacterRotation(), LLCharacter::getCharacterVelocity(), LLCharacter::getGround(), mCharacter, mRotationToGroundNormal, LLVector3::mV, mVelocityZ, LLVector3::normVec(), LLKeyframeMotion::onActivate(), LLQuaternion::transQuat(), and VZ.
LLMotion::LLMotionInitStatus LLKeyframeFallMotion::onInitialize | ( | LLCharacter * | character | ) | [virtual] |
Reimplemented from LLKeyframeMotion.
Definition at line 70 of file llkeyframefallmotion.cpp.
References LLMotion::getName(), mCharacter, LLKeyframeMotion::mJointMotionList, LLKeyframeMotion::mJointStates, mPelvisStatep, and LLKeyframeMotion::onInitialize().
Reimplemented from LLKeyframeMotion.
Definition at line 122 of file llkeyframefallmotion.cpp.
References clamp_rescale(), f, LLKeyframeMotion::getDuration(), LLJointState::getRotation(), mPelvisStatep, mRotationToGroundNormal, LLKeyframeMotion::onUpdate(), LLJointState::setRotation(), and slerp().
LLCharacter* LLKeyframeFallMotion::mCharacter [protected] |
Reimplemented from LLKeyframeMotion.
Definition at line 76 of file llkeyframefallmotion.h.
Referenced by getEaseInDuration(), LLKeyframeFallMotion(), onActivate(), and onInitialize().
LLJointState* LLKeyframeFallMotion::mPelvisStatep [protected] |
F32 LLKeyframeFallMotion::mVelocityZ [protected] |
Definition at line 77 of file llkeyframefallmotion.h.
Referenced by getEaseInDuration(), LLKeyframeFallMotion(), and onActivate().