expanded light sample

minor improvements
This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 1d102d091f
commit 9aa2981e70
11 changed files with 60 additions and 14 deletions
+2 -2
View File
@@ -45,12 +45,12 @@ int main(){
Skeleton *skeleton = mesh->getSkeleton();
AnimationController *controller = skeleton->getAnimationController();
AnimationChannel *channel = new AnimationChannel(controller);
AnimationChannel *channel = new AnimationChannel();
controller->addAnimationChannel(channel);
channel->addAnimatable(skeleton->getBone("handIK.R"));
channel->addAnimatable(skeleton->getBone("elbowIK.R"));
channel->setAnimationName("righArmAnim");
channel->setLoop(true);
controller->addAnimationChannel(channel);
skeleton->getBone("handIK.L")->setPosePos(Vector3(1.5, -1.5, 0));