载入中...
搜索中...
未找到
eve::animation::MotionMatcher类 参考

Runtime motion matching player: builds a query feature from current pose + desired trajectory, searches MotionDatabase, cross-fades to best match. Script type: MotionMatcher. 更多...

#include <MotionMatcher.h>

Public 成员函数

 MotionMatcher (AnimSkeleton *skeleton, MotionDatabase *database)
 
 ~MotionMatcher ()=default
 
 MotionMatcher (const MotionMatcher &)=delete
 
MotionMatcheroperator= (const MotionMatcher &)=delete
 
AnimSkeletongetSkeleton () const
 
MotionDatabasegetDatabase () const
 
void setDesiredVelocity (float x, float z)
 Desired planar velocity in character/world XZ (units/sec).
 
float getDesiredVelocityX () const
 
float getDesiredVelocityZ () const
 
void setDesiredYaw (float yaw)
 Desired facing yaw (radians, Y-up).
 
float getDesiredYaw () const
 
void setSearchInterval (float seconds)
 
float getSearchInterval () const
 
void setBlendTime (float seconds)
 
float getBlendTime () const
 
void setTrajectoryWeight (float w)
 
float getTrajectoryWeight () const
 
void setPoseWeight (float w)
 
float getPoseWeight () const
 
void setVelocityWeight (float w)
 
float getVelocityWeight () const
 
void setIgnoreRadius (int frames)
 Skip rematching the same frame / nearby frames to reduce jitter.
 
int getIgnoreRadius () const
 
int getMatchedFrame () const
 
int getMatchedClipIndex () const
 
float getMatchedTime () const
 
float getLastSearchCost () const
 
AnimPosegetPose ()
 
void search ()
 Force an immediate search (also called periodically from update).
 
void update (float dt)
 

详细描述

Runtime motion matching player: builds a query feature from current pose + desired trajectory, searches MotionDatabase, cross-fades to best match. Script type: MotionMatcher.

在文件 MotionMatcher.h17 行定义.

构造及析构函数说明

◆ MotionMatcher() [1/2]

◆ ~MotionMatcher()

eve::animation::MotionMatcher::~MotionMatcher ( )
default

◆ MotionMatcher() [2/2]

eve::animation::MotionMatcher::MotionMatcher ( const MotionMatcher )
delete

成员函数说明

◆ getBlendTime()

float eve::animation::MotionMatcher::getBlendTime ( ) const
inline

在文件 MotionMatcher.h40 行定义.

◆ getDatabase()

MotionDatabase * eve::animation::MotionMatcher::getDatabase ( ) const
inline

在文件 MotionMatcher.h26 行定义.

◆ getDesiredVelocityX()

float eve::animation::MotionMatcher::getDesiredVelocityX ( ) const
inline

在文件 MotionMatcher.h30 行定义.

◆ getDesiredVelocityZ()

float eve::animation::MotionMatcher::getDesiredVelocityZ ( ) const
inline

在文件 MotionMatcher.h31 行定义.

◆ getDesiredYaw()

float eve::animation::MotionMatcher::getDesiredYaw ( ) const
inline

在文件 MotionMatcher.h35 行定义.

◆ getIgnoreRadius()

int eve::animation::MotionMatcher::getIgnoreRadius ( ) const
inline

在文件 MotionMatcher.h50 行定义.

◆ getLastSearchCost()

float eve::animation::MotionMatcher::getLastSearchCost ( ) const
inline

在文件 MotionMatcher.h55 行定义.

◆ getMatchedClipIndex()

int eve::animation::MotionMatcher::getMatchedClipIndex ( ) const

在文件 MotionMatcher.cpp63 行定义.

引用了 eve::animation::MotionDatabase::getFrameClipIndex().

被这些函数引用 search().

◆ getMatchedFrame()

int eve::animation::MotionMatcher::getMatchedFrame ( ) const
inline

在文件 MotionMatcher.h52 行定义.

◆ getMatchedTime()

float eve::animation::MotionMatcher::getMatchedTime ( ) const
inline

在文件 MotionMatcher.h54 行定义.

◆ getPose()

AnimPose * eve::animation::MotionMatcher::getPose ( )

在文件 MotionMatcher.cpp68 行定义.

◆ getPoseWeight()

float eve::animation::MotionMatcher::getPoseWeight ( ) const
inline

在文件 MotionMatcher.h44 行定义.

◆ getSearchInterval()

float eve::animation::MotionMatcher::getSearchInterval ( ) const
inline

在文件 MotionMatcher.h38 行定义.

◆ getSkeleton()

AnimSkeleton * eve::animation::MotionMatcher::getSkeleton ( ) const
inline

在文件 MotionMatcher.h25 行定义.

◆ getTrajectoryWeight()

float eve::animation::MotionMatcher::getTrajectoryWeight ( ) const
inline

在文件 MotionMatcher.h42 行定义.

◆ getVelocityWeight()

float eve::animation::MotionMatcher::getVelocityWeight ( ) const
inline

在文件 MotionMatcher.h46 行定义.

◆ operator=()

MotionMatcher & eve::animation::MotionMatcher::operator= ( const MotionMatcher )
delete

◆ search()

◆ setBlendTime()

void eve::animation::MotionMatcher::setBlendTime ( float  seconds)

在文件 MotionMatcher.cpp38 行定义.

◆ setDesiredVelocity()

void eve::animation::MotionMatcher::setDesiredVelocity ( float  x,
float  z 
)

Desired planar velocity in character/world XZ (units/sec).

在文件 MotionMatcher.cpp26 行定义.

引用了 x , 以及 z.

◆ setDesiredYaw()

void eve::animation::MotionMatcher::setDesiredYaw ( float  yaw)

Desired facing yaw (radians, Y-up).

在文件 MotionMatcher.cpp31 行定义.

◆ setIgnoreRadius()

void eve::animation::MotionMatcher::setIgnoreRadius ( int  frames)

Skip rematching the same frame / nearby frames to reduce jitter.

在文件 MotionMatcher.cpp58 行定义.

◆ setPoseWeight()

void eve::animation::MotionMatcher::setPoseWeight ( float  w)

在文件 MotionMatcher.cpp48 行定义.

引用了 w.

◆ setSearchInterval()

void eve::animation::MotionMatcher::setSearchInterval ( float  seconds)

在文件 MotionMatcher.cpp33 行定义.

◆ setTrajectoryWeight()

void eve::animation::MotionMatcher::setTrajectoryWeight ( float  w)

在文件 MotionMatcher.cpp43 行定义.

引用了 w.

◆ setVelocityWeight()

void eve::animation::MotionMatcher::setVelocityWeight ( float  w)

在文件 MotionMatcher.cpp53 行定义.

引用了 w.

◆ update()

void eve::animation::MotionMatcher::update ( float  dt)

该类的文档由以下文件生成: