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.
|
#include <TransformData.h>
Inherits MCore::RefCounted.
Public Types | |
enum | ENodeFlags { FLAG_HASSCALE = 1 << 0 } |
Public Member Functions | |
void | InitForActorInstance (ActorInstance *actorInstance) |
void | Release () |
MCORE_INLINE AZ::Matrix3x4 * | GetSkinningMatrices () |
MCORE_INLINE const AZ::Matrix3x4 * | GetSkinningMatrices () const |
MCORE_INLINE Pose * | GetBindPose () const |
MCORE_INLINE const Pose * | GetCurrentPose () const |
MCORE_INLINE Pose * | GetCurrentPose () |
void | ResetToBindPoseTransformation (size_t nodeIndex) |
void | ResetToBindPoseTransformations () |
EMFX_SCALECODE (void SetBindPoseLocalScaleInherit(size_t nodeIndex, const AZ::Vector3 &scale);void SetBindPoseLocalScale(size_t nodeIndex, const AZ::Vector3 &scale);) MCORE_INLINE const ActorInstance *GetActorInstance() const | |
MCORE_INLINE size_t | GetNumTransforms () const |
void | MakeBindPoseTransformsUnique () |
void | SetNumMorphWeights (size_t numMorphWeights) |
Public Member Functions inherited from MCore::RefCounted | |
RefCounted () | |
virtual | ~RefCounted () |
void | IncreaseReferenceCount () |
void | DecreaseReferenceCount () |
void | Destroy () |
uint32 | GetReferenceCount () const |
Static Public Member Functions | |
static TransformData * | Create () |
Additional Inherited Members | |
Protected Member Functions inherited from MCore::RefCounted | |
virtual void | Delete () |
The transformation data class. This class holds all transformation data for each node. This includes local space transforms, local space matrices as well as world space matrices. If for example you wish to get the world space matrices for all nodes, to be used for rendering, you will have to use this class.
|
static |
The creation method.
|
inline |
Get the skinning matrices (offset from the pose). The size of the returned array is equal to the amount of nodes in the actor or the value returned by GetNumTransforms()
|
inline |
Get the skinning matrices (offset from the pose), in read-only (const) mode. The size of the returned array is equal to the amount of nodes in the actor or the value returned by GetNumTransforms()
void EMotionFX::TransformData::InitForActorInstance | ( | ActorInstance * | actorInstance | ) |
Initialize the transformation data for a given ActorInstance object. This will allocate data for the number of nodes in the actor. You can call this multiple times if needed.
actorInstance | The actor instance to initialize for. |
void EMotionFX::TransformData::Release | ( | ) |
Release all allocated memory.
|
inline |
Reset the local space transform of a given node to its bind pose local space transform.
nodeIndex | The node number, which must be in range of [0..GetNumTransforms()-1]. |
|
inline |
Reset all local space transforms to the local space transforms of the bind pose.