influence of additional bones for IK chains

This commit is contained in:
devZoGok
2021-10-19 19:06:41 +03:00
parent 539c147c92
commit 18fab525e8
4 changed files with 28 additions and 24 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
#include "bone.h"
namespace vb01{
void IkSolver::calculateFabrik(int chainLength, Bone *boneChain[], Vector3 boneIkPos[], Vector3 targetPos){
void IkSolver::calculateFabrik(int chainLength, Bone **boneChain, Vector3 boneIkPos[], Vector3 targetPos){
float sumLengths = 0;
for(int i = 0; i < chainLength; i++)
sumLengths += boneChain[i]->getLength();