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

Method GetCurrentPose

Source/Engine/Level/Actors/AnimatedModel.cpp:197–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void AnimatedModel::GetCurrentPose(Array<Matrix>& nodesTransformation, bool worldSpace) const
198{
199 if (GraphInstance.NodesPose.IsEmpty())
200 const_cast<AnimatedModel*>(this)->PreInitSkinningData(); // Ensure to have valid nodes pose to return
201 nodesTransformation = GraphInstance.NodesPose;
202 if (worldSpace)
203 {
204 Matrix world;
205 GetLocalToWorldMatrix(world);
206 for (auto& m : nodesTransformation)
207 m = m * world;
208 }
209}
210
211void AnimatedModel::GetCurrentPose(Span<Matrix>& nodesTransformation) const
212{

Callers 6

OnPreUpdateMethod · 0.80
RunClothDeformerMethod · 0.80
OnFixedUpdateMethod · 0.80
BuildRagdollMethod · 0.80
GetBoundsMethod · 0.80
OnDebugDrawMethod · 0.80

Calls 3

PreInitSkinningDataMethod · 0.80
ToSpanFunction · 0.50
IsEmptyMethod · 0.45

Tested by

no test coverage detected