MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddDeformer

Method AddDeformer

Source/Engine/Graphics/Models/MeshDeformation.cpp:91–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91void MeshDeformation::AddDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
92{
93 const auto key = GetKey(lodIndex, meshIndex, type);
94 _deformers[key].Bind(deformer);
95 Dirty(lodIndex, meshIndex, type);
96}
97
98void MeshDeformation::RemoveDeformer(int32 lodIndex, int32 meshIndex, MeshBufferType type, const Function<void(const MeshBase* mesh, MeshDeformationData& deformation)>& deformer)
99{

Callers 2

CreateClothMethod · 0.80
SetBlendShapeWeightMethod · 0.80

Calls 2

GetKeyFunction · 0.70
BindMethod · 0.45

Tested by

no test coverage detected