Open 3D Engine EMotionFX Gem API Reference
24.09
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
|
Inherits MCore::RefCounted.
Public Member Functions | |
void | AddMotion (Motion *motion) |
MCORE_INLINE Motion * | GetMotion (size_t index) const |
MCORE_INLINE size_t | GetNumMotions () const |
bool | RemoveMotionByName (const char *motionName, bool delFromMemory=true, bool isTool=true) |
bool | RemoveMotionByID (uint32 id, bool delFromMemory=true) |
bool | RemoveMotionByFileName (const char *fileName, bool delFromMemory=true, bool isTool=true) |
bool | RemoveMotion (Motion *motion, bool delFromMemory=true) |
Motion * | FindMotionByName (const char *motionName, bool isTool=true) const |
Motion * | FindMotionByFileName (const char *fileName, bool isTool=true) const |
Motion * | FindMotionByID (uint32 id) const |
size_t | FindMotionIndexByName (const char *motionName, bool isTool=true) const |
size_t | FindMotionIndexByFileName (const char *fileName, bool isTool=true) const |
size_t | FindMotionIndexByID (uint32 id) const |
size_t | FindMotionIndex (Motion *motion) const |
void | AddMotionSet (MotionSet *motionSet) |
MCORE_INLINE MotionSet * | GetMotionSet (size_t index) const |
MCORE_INLINE size_t | GetNumMotionSets () const |
size_t | CalcNumRootMotionSets () const |
MotionSet * | FindRootMotionSet (size_t index) |
MotionSet * | FindMotionSetByName (const char *name, bool isOwnedByRuntime=false) const |
MotionSet * | FindMotionSetByID (uint32 id) const |
MotionSet * | FindMotionSetByFileName (const char *fileName, bool isTool=true) const |
size_t | FindMotionSetIndexByName (const char *name, bool isTool=true) const |
size_t | FindMotionSetIndexByID (uint32 id) const |
size_t | FindMotionSetIndex (MotionSet *motionSet) const |
bool | RemoveMotionSetByName (const char *motionName, bool delFromMemory=true, bool isTool=true) |
bool | RemoveMotionSetByID (uint32 id, bool delFromMemory=true) |
bool | RemoveMotionSet (MotionSet *motionSet, bool delFromMemory=true) |
void | Clear (bool delFromMemory=true) |
void | Lock () |
void | Unlock () |
MotionDataFactory & | GetMotionDataFactory () |
const MotionDataFactory & | GetMotionDataFactory () const |
Public Member Functions inherited from MCore::RefCounted | |
RefCounted () | |
virtual | ~RefCounted () |
void | IncreaseReferenceCount () |
void | DecreaseReferenceCount () |
void | Destroy () |
uint32 | GetReferenceCount () const |
Static Public Member Functions | |
static MotionManager * | Create () |
Friends | |
class | Initializer |
class | EMotionFXManager |
Additional Inherited Members | |
Protected Member Functions inherited from MCore::RefCounted | |
virtual void | Delete () |
void EMotionFX::MotionManager::AddMotion | ( | Motion * | motion | ) |
Add a motion to the motion manager.
void EMotionFX::MotionManager::AddMotionSet | ( | MotionSet * | motionSet | ) |
Add a motion set to the motion manager.
[in] | motionSet | A pointer to the motion set to add. |
size_t EMotionFX::MotionManager::CalcNumRootMotionSets | ( | ) | const |
Calculate the number of root motion sets. This will iterate over all motion sets, check if they have a parent and sum all the root ones.
Motion* EMotionFX::MotionManager::FindMotionByFileName | ( | const char * | fileName, |
bool | isTool = true |
||
) | const |
Find the given motion by filename.
[in] | fileName | The filename of the motion. |
[in] | isTool | Set when calling this function from the tools environment (default). |
Motion* EMotionFX::MotionManager::FindMotionByID | ( | uint32 | id | ) | const |
Find the given motion by name.
[in] | id | The id of the motion. |
Motion* EMotionFX::MotionManager::FindMotionByName | ( | const char * | motionName, |
bool | isTool = true |
||
) | const |
Find the given motion by name.
[in] | motionName | The name of the motion. |
[in] | isTool | Set when calling this function from the tools environment (default). |
size_t EMotionFX::MotionManager::FindMotionIndex | ( | Motion * | motion | ) | const |
Find the index for the given motion.
[in] | motion | A pointer to the motion to search. |
size_t EMotionFX::MotionManager::FindMotionIndexByFileName | ( | const char * | fileName, |
bool | isTool = true |
||
) | const |
Find the motion index by file name.
[in] | fileName | The file name of the motion. |
[in] | isTool | Set when calling this function from the tools environment (default). |
size_t EMotionFX::MotionManager::FindMotionIndexByID | ( | uint32 | id | ) | const |
Find the motion index by id.
[in] | id | The id of the motion. |
size_t EMotionFX::MotionManager::FindMotionIndexByName | ( | const char * | motionName, |
bool | isTool = true |
||
) | const |
Find the motion index by name.
[in] | motionName | The name of the motion. |
[in] | isTool | Set when calling this function from the tools environment (default). |
MotionSet* EMotionFX::MotionManager::FindMotionSetByFileName | ( | const char * | fileName, |
bool | isTool = true |
||
) | const |
Find motion set by its filename.
[in] | fileName | The filename of the motion set to search for. |
[in] | isTool | Set when calling this function from the tools environment (default). |
MotionSet* EMotionFX::MotionManager::FindMotionSetByID | ( | uint32 | id | ) | const |
Find motion set by id.
[in] | id | The id of the motion set. |
MotionSet* EMotionFX::MotionManager::FindMotionSetByName | ( | const char * | name, |
bool | isOwnedByRuntime = false |
||
) | const |
Find motion set by name.
[in] | name | The name of the motion set. |
[in] | isOwnedByRuntime | Set when calling this function from Ly environment (default false to mean called from EMotionStudio). |
size_t EMotionFX::MotionManager::FindMotionSetIndex | ( | MotionSet * | motionSet | ) | const |
Find motion set index for the given motion set.
[in] | motionSet | A pointer to the motion set to search. |
size_t EMotionFX::MotionManager::FindMotionSetIndexByID | ( | uint32 | id | ) | const |
Find motion set index by id.
[in] | id | The id of the motion set. |
size_t EMotionFX::MotionManager::FindMotionSetIndexByName | ( | const char * | name, |
bool | isTool = true |
||
) | const |
Find motion set index by name.
[in] | name | The name of the motion set. |
[in] | isTool | Set when calling this function from the tools environment (default). |
MotionSet* EMotionFX::MotionManager::FindRootMotionSet | ( | size_t | index | ) |
Find the root motion set with the given index.
[in] | index | The index of the root motion set. The index must be in range [0, CalcNumRootMotionSets()-1]. |
|
inline |
Get a pointer to the given motion.
[in] | index | The index of the motion. The index must be in range [0, GetNumMotions()-1]. |
|
inline |
Get a pointer to the given motion set.
[in] | index | The index of the motion set. The index must be in range [0, GetNumMotionSets()-1]. |
|
inline |
Get the number of motions in the motion manager.
|
inline |
Get the number of motion sets in the motion manager.
bool EMotionFX::MotionManager::RemoveMotion | ( | Motion * | motion, |
bool | delFromMemory = true |
||
) |
Remove the given motion from the motion manager.
[in] | motion | A pointer to the motion to remove. |
delFromMemory | Set this to true when if you also want to delete the motion from memory. When set to false, it will not be deleted from memory, but only removed from the array of motions. |
bool EMotionFX::MotionManager::RemoveMotionByFileName | ( | const char * | fileName, |
bool | delFromMemory = true , |
||
bool | isTool = true |
||
) |
Remove the motion that has a given file name.
[in] | fileName | The file name of the motion to delete from the manager. |
delFromMemory | Set this to true when if you also want to delete the motion from memory. When set to false, it will not be deleted from memory, but only removed from the array of motions. | |
[in] | isTool | Set when calling this function from the tools environment (default). |
bool EMotionFX::MotionManager::RemoveMotionByID | ( | uint32 | id, |
bool | delFromMemory = true |
||
) |
Remove the motion with the given id from the motion manager.
[in] | id | The id of the motion. |
delFromMemory | Set this to true when if you also want to delete the motion from memory. When set to false, it will not be deleted from memory, but only removed from the array of motions. |
bool EMotionFX::MotionManager::RemoveMotionByName | ( | const char * | motionName, |
bool | delFromMemory = true , |
||
bool | isTool = true |
||
) |
Remove the motion with the given name from the motion manager.
[in] | motionName | The name of the motion to remove. |
delFromMemory | Set this to true when if you also want to delete the motion from memory. When set to false, it will not be deleted from memory, but only removed from the array of motions. | |
[in] | isTool | Set when calling this function from the tools environment (default). |