本文整理汇总了C++中LLVOAvatar::stopMotion方法的典型用法代码示例。如果您正苦于以下问题:C++ LLVOAvatar::stopMotion方法的具体用法?C++ LLVOAvatar::stopMotion怎么用?C++ LLVOAvatar::stopMotion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LLVOAvatar
的用法示例。
在下文中一共展示了LLVOAvatar::stopMotion方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: onCommitBaseAnim
//-----------------------------------------------------------------------------
// onCommitBaseAnim()
//-----------------------------------------------------------------------------
void LLFloaterAnimPreview::onCommitBaseAnim(LLUICtrl* ctrl, void* data)
{
LLFloaterAnimPreview* previewp = (LLFloaterAnimPreview*)data;
if (!previewp->getEnabled())
return;
if (previewp->mAnimPreview)
{
LLVOAvatar* avatarp = previewp->mAnimPreview->getDummyAvatar();
BOOL paused = avatarp->areAnimationsPaused();
// stop all other possible base motions
avatarp->stopMotion(ANIM_AGENT_STAND, TRUE);
avatarp->stopMotion(ANIM_AGENT_WALK, TRUE);
avatarp->stopMotion(ANIM_AGENT_SIT, TRUE);
avatarp->stopMotion(ANIM_AGENT_HOVER, TRUE);
previewp->resetMotion();
if (!paused)
{
previewp->mPauseRequest = NULL;
}
}
}
示例2:
//-----------------------------------------------------------------------------
// LLFloaterAnimPreview()
//-----------------------------------------------------------------------------
LLFloaterAnimPreview::~LLFloaterAnimPreview()
{
if (mInWorld)
{
LLVOAvatar* avatarp = gAgent.getAvatarObject();
if (avatarp)
{
if (mMotionID.notNull())
{
avatarp->stopMotion(mMotionID, TRUE);
avatarp->removeMotion(mMotionID);
}
avatarp->deactivateAllMotions();
avatarp->startMotion(ANIM_AGENT_HEAD_ROT);
avatarp->startMotion(ANIM_AGENT_EYE);
avatarp->startMotion(ANIM_AGENT_BODY_NOISE);
avatarp->startMotion(ANIM_AGENT_BREATHE_ROT);
avatarp->startMotion(ANIM_AGENT_HAND_MOTION);
avatarp->startMotion(ANIM_AGENT_PELVIS_FIX);
avatarp->startMotion(ANIM_AGENT_STAND, BASE_ANIM_TIME_OFFSET);
}
}
delete mAnimPreview;
mAnimPreview = NULL;
setEnabled(FALSE);
}
示例3:
//-----------------------------------------------------------------------------
// initialize()
//-----------------------------------------------------------------------------
void LLMorphView::initialize()
{
mCameraPitch = 0.f;
mCameraYaw = 0.f;
mCameraDist = -1.f;
LLVOAvatar *avatarp = gAgent.getAvatarObject();
if (!avatarp || avatarp->isDead())
{
gAgent.changeCameraToDefault();
return;
}
avatarp->stopMotion( ANIM_AGENT_BODY_NOISE );
avatarp->mSpecialRenderMode = 3;
// set up camera for close look at avatar
mOldCameraNearClip = LLViewerCamera::getInstance()->getNear();
LLViewerCamera::getInstance()->setNear(MORPH_NEAR_CLIP);
}