SkeletonUpdater Class
Namespace: Stride.RenderingAssembly: Stride.Rendering.dll
Performs hierarchical updates for a given Model.
System.Object →
SkeletonUpdater
Derived from SkeletonUpdater:
[DataContract]
public class SkeletonUpdater
| Name | Description | |
|---|---|---|
| Constructors | ||
| SkeletonUpdater(Skeleton) | Initializes a new instance of the SkeletonUpdater class. |
|
| Properties | ||
| Nodes | ||
| NodeTransformations | ||
| Methods | ||
| GetLocalMatrix(Int32, out Matrix) | ||
| GetWorldMatrix(Int32, out Matrix) | ||
| Initialize(Skeleton) | ||
| ResetInitialValues() | Resets initial values. |
|
| UpdateMatrices() | For each node, updates the world matrices from local matrices. |
|
Constructors
SkeletonUpdater(Skeleton)
Initializes a new instance of the SkeletonUpdater class.
public SkeletonUpdater(Skeleton skeleton)
Parameters
| Type | Name | Description |
|---|---|---|
| Skeleton | skeleton | The skeleton. |
Properties
Nodes
public ModelNodeDefinition[] Nodes { get; }
Property Value
| Type | Description |
|---|---|
| ModelNodeDefinition[] |
NodeTransformations
public ModelNodeTransformation[] NodeTransformations { get; }
Property Value
| Type | Description |
|---|---|
| ModelNodeTransformation[] |
Methods
GetLocalMatrix(Int32, out Matrix)
public void GetLocalMatrix(int index, out Matrix matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| Matrix | matrix |
GetWorldMatrix(Int32, out Matrix)
public void GetWorldMatrix(int index, out Matrix matrix)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | |
| Matrix | matrix |
Initialize(Skeleton)
public void Initialize(Skeleton skeleton)
Parameters
| Type | Name | Description |
|---|---|---|
| Skeleton | skeleton |
ResetInitialValues()
Resets initial values.
public void ResetInitialValues()
UpdateMatrices()
For each node, updates the world matrices from local matrices.
public void UpdateMatrices()