Animation controller uses now the singleton pattern

This commit is contained in:
devZoGok
2022-03-01 20:51:40 +02:00
parent 78f43e11bd
commit f64a3e13df
19 changed files with 46 additions and 44 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ namespace vb01{
rootNode->attachChild(modelNodeParent);
modelNodeParent->attachChild(modelNode);
skeleton = new Skeleton(new AnimationController());
skeleton = new Skeleton();
Bone *rootBone = new Bone("rootBone", 1, Vector3::VEC_ZERO, Quaternion::QUAT_W, Vector3::VEC_IJK);
Bone *pelvis = new Bone("pelvis", 1, Vector3(0, 2, 0), Quaternion::QUAT_W, Vector3::VEC_IJK);