LLKeyframeFallMotion Class Reference

#include <llkeyframefallmotion.h>

Inheritance diagram for LLKeyframeFallMotion:

Inheritance graph
[legend]
Collaboration diagram for LLKeyframeFallMotion:

Collaboration graph
[legend]
List of all members.

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

Protected Attributes

LLCharactermCharacter
F32 mVelocityZ
LLJointStatemPelvisStatep
LLQuaternion mRotationToGroundNormal

Detailed Description

Definition at line 44 of file llkeyframefallmotion.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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

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().

BOOL LLKeyframeFallMotion::onUpdate ( F32  activeTime,
U8 joint_mask 
) [virtual]

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().


Member Data Documentation

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]

Definition at line 78 of file llkeyframefallmotion.h.

Referenced by onInitialize(), and onUpdate().

LLQuaternion LLKeyframeFallMotion::mRotationToGroundNormal [protected]

Definition at line 79 of file llkeyframefallmotion.h.

Referenced by onActivate(), and onUpdate().

F32 LLKeyframeFallMotion::mVelocityZ [protected]

Definition at line 77 of file llkeyframefallmotion.h.

Referenced by getEaseInDuration(), LLKeyframeFallMotion(), and onActivate().


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