mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
revamped Y axis orientation method
assignment of animated model bone axis pose orientaion axis retrieved from bone axis
This commit is contained in:
@@ -9,7 +9,7 @@ namespace vb01{
|
||||
this->length = length;
|
||||
}
|
||||
|
||||
void Bone::lookAt(Vector3 newDir, Vector3 newUp, Node *par){
|
||||
void Bone::lookAt(Vector3 newDir, Vector3 newUp){
|
||||
Node::lookAt(newDir, newUp);
|
||||
for(int i = 0; i < 3; i++)
|
||||
this->initAxis[i] = globalAxis[i];
|
||||
@@ -18,17 +18,6 @@ namespace vb01{
|
||||
restScale = scale;
|
||||
}
|
||||
|
||||
/*
|
||||
void Bone::lookAt(Vector3 newDir, Node *par){
|
||||
Node::lookAt(newDir, par);
|
||||
for(int i = 0; i < 3; i++)
|
||||
this->initAxis[i] = globalAxis[i];
|
||||
restPos = pos;
|
||||
restRot = orientation;
|
||||
restScale = scale;
|
||||
}
|
||||
*/
|
||||
|
||||
Vector3 Bone::getModelSpacePos(){
|
||||
Vector3 modelSpacePos = Vector3::VEC_ZERO;
|
||||
Bone *rootBone = skeleton->getRootBone();
|
||||
|
||||
Reference in New Issue
Block a user