mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
code cleanup
This commit is contained in:
+6
-3
@@ -17,6 +17,11 @@ namespace vb01{
|
||||
}
|
||||
|
||||
void Skeleton::update(){
|
||||
updateIk();
|
||||
controller->update();
|
||||
}
|
||||
|
||||
void Skeleton::updateIk(){
|
||||
for(Bone *b : bones){
|
||||
if(b->getIkTarget()){
|
||||
const int chainLength = b->getIkChainLength();
|
||||
@@ -29,11 +34,9 @@ namespace vb01{
|
||||
delete[] boneChain;
|
||||
}
|
||||
}
|
||||
for(Bone *b : bones){
|
||||
for(Bone *b : bones)
|
||||
if(b->getIkTarget())
|
||||
solveIk(b);
|
||||
}
|
||||
controller->update();
|
||||
}
|
||||
|
||||
void Skeleton::solveIk(Bone *ikBone){
|
||||
|
||||
Reference in New Issue
Block a user