#include <SkinningInfoVertexAttributeLayer.h>
A soft skinning influence between a vertex and a bone, with a given weight.
◆ SkinInfluence() [1/2]
EMotionFX::SkinInfluence::SkinInfluence |
( |
| ) |
|
|
inline |
◆ SkinInfluence() [2/2]
EMotionFX::SkinInfluence::SkinInfluence |
( |
uint16 |
nodeNr, |
|
|
float |
weight, |
|
|
uint16 |
boneNr = 0 |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
nodeNr | The node number which acts as bone. |
weight | The weight value, which must be in range of [0..1]. |
boneNr | The bone number, used as optimization inside the softskin deformer. |
◆ GetBoneNr()
MCORE_INLINE uint16 EMotionFX::SkinInfluence::GetBoneNr |
( |
| ) |
const |
|
inline |
Get the bone number, which is used for precalculations.
- Returns
- The bone number.
◆ GetNodeNr()
MCORE_INLINE uint16 EMotionFX::SkinInfluence::GetNodeNr |
( |
| ) |
const |
|
inline |
Get the node number that points inside an actor. So this number is an index you can pass to Actor::GetNode(...) to get the actual node that acts as bone.
- Returns
- The node number, which points inside the nodes array of the actor.
◆ GetWeight()
MCORE_INLINE float EMotionFX::SkinInfluence::GetWeight |
( |
| ) |
const |
|
inline |
Get the weight of this influence.
- Returns
- The weight, which should be in range of [0..1].
◆ SetBoneNr()
void EMotionFX::SkinInfluence::SetBoneNr |
( |
uint16 |
boneNr | ) |
|
|
inline |
Set the bone number, used for precalculations.
- Parameters
-
◆ SetNodeNr()
void EMotionFX::SkinInfluence::SetNodeNr |
( |
uint16 |
nodeNr | ) |
|
|
inline |
Set the node number that points inside an actor. So this number is an index you can pass to Actor::GetNode(...) to get the actual node that acts as bone.
- Parameters
-
nodeNr | The node number, which points inside the nodes array of the actor. |
◆ SetWeight()
void EMotionFX::SkinInfluence::SetWeight |
( |
float |
weight | ) |
|
|
inline |
Adjust the weight value.
- Parameters
-
weight | The weight value, which must be in range of [0..1]. |
The documentation for this class was generated from the following file:
- Gems/EMotionFX/Code/EMotionFX/Source/SkinningInfoVertexAttributeLayer.h