| 195 | } |
| 196 | |
| 197 | void 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 | |
| 211 | void AnimatedModel::GetCurrentPose(Span<Matrix>& nodesTransformation) const |
| 212 | { |
no test coverage detected