mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
Klaidų taisymas eksporteryje bei sprendžiant IK
exporter and IK sollution bugfixes
This commit is contained in:
@@ -16,6 +16,18 @@ namespace vb01{
|
||||
}
|
||||
|
||||
void Skeleton::update(){
|
||||
for(Bone *b : bones){
|
||||
if(b->getIkTarget()){
|
||||
const int chainLength = b->getIkChainLength();
|
||||
Bone **boneChain = getIkBoneChain(b);
|
||||
for(int i = 0; i < chainLength; i++){
|
||||
boneChain[i]->setPosePos(Vector3::VEC_ZERO);
|
||||
boneChain[i]->setPoseRot(Quaternion::QUAT_W);
|
||||
boneChain[i]->setPoseScale(Vector3::VEC_IJK);
|
||||
}
|
||||
delete[] boneChain;
|
||||
}
|
||||
}
|
||||
for(Bone *b : bones){
|
||||
if(b->getIkTarget())
|
||||
solveIk(b);
|
||||
|
||||
Reference in New Issue
Block a user