Navigation
API > API/Runtime > API/Runtime/Chaos > API/Runtime/Chaos/GeometryCollection > API/Runtime/Chaos/GeometryCollection/Facades
References
| Module | Chaos |
| Header | /Engine/Source/Runtime/Experimental/Chaos/Public/GeometryCollection/Facades/CollectionVertexBoneWeightsFacade.h |
| Include | #include "GeometryCollection/Facades/CollectionVertexBoneWeightsFacade.h" |
Syntax
class FVertexBoneWeightsFacade
Remarks
Defines common API for storing a vertex weights bound to a bone. This mapping is from the the vertex to the bone index. Kinematic array specifies whether vertices are considered kinematic. Non-kinematic vertices can also have associated bone indices and weights.
Then arrays can be accessed later by: const TManagedArray< TArray
The following attributes are created on the collection:
- FindAttribute
>(FVertexSetInterface::IndexAttribute, FGeometryCollection::VerticesGroup); - FindAttribute
>(FVertexSetInterface::WeightAttribute, FGeometryCollection::VerticesGroup);
Constructors
| Type | Name | Description | |
|---|---|---|---|
FVertexBoneWeightsFacade
(
FManagedArrayCollection& InSelf |
FVertexBoneWeightsFacade Constuctor | ||
FVertexBoneWeightsFacade
(
const FManagedArrayCollection& InSelf |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddBoneWeight
(
int32 VertexIndex, |
Add single bone/weight to vertex | |
| void | Add bone weight based on the kinematic bindings. | ||
| void | DefineSchema () |
Define the facade | |
| const TManagedArray< TArray< int32 > > * | Return the vertex bone indices from the collection. Null if not initialized. | ||
| const TManagedArray< TArray< float > > * | Return the vertex bone weights from the collection. Null if not initialized. | ||
| const TManagedArray< TArray< int32 > > & | |||
| const TManagedArray< TArray< float > > & | |||
| bool | IsConst () |
Is the Facade const | |
| bool | IsKinematicVertex
(
int32 VertexIndex |
Return if the vertex is kinematic Pre 5.5 we did not have per-vertex kinematic attribute. | |
| bool | IsValid () |
Is the Facade defined on the collection? | |
| void | ModifyBoneWeight
(
int32 VertexIndex, |
Modify bone weight based on the kinematic bindings. | |
| int32 | NumVertices () |
Return number of vertices | |
| void | SetVertexArrayKinematic
(
const TArray< int32 >& VertexIndices |
||
| void | SetVertexKinematic
(
int32 VertexIndex |
Set vertex to be kinematic |
Constants
| Name | Description |
|---|---|
| BoneIndexAttributeName | Attributes. |
| BoneWeightAttributeName | |
| KinematicAttributeName |