mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
bone setup corrections
This commit is contained in:
@@ -17,11 +17,17 @@ namespace vb01{
|
||||
void Bone::updateBoneInfo(){
|
||||
for(int i = 0; i < 3; i++)
|
||||
this->initAxis[i] = globalAxis[i];
|
||||
|
||||
restPos = pos;
|
||||
restRot = orientation;
|
||||
restScale = scale;
|
||||
}
|
||||
|
||||
void Bone::onAttached(){
|
||||
Node::onAttached();
|
||||
updateBoneInfo();
|
||||
}
|
||||
|
||||
Vector3 Bone::getBoneSpaceRestPos(Bone *bone){
|
||||
Bone *rootBone = skeleton->getRootBone();
|
||||
Vector3 modelSpacePos = Vector3::VEC_ZERO;
|
||||
|
||||
Reference in New Issue
Block a user