mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
bone transformations influence verts according to weights
This commit is contained in:
@@ -7,11 +7,22 @@
|
||||
namespace vb01{
|
||||
class Bone : public Node{
|
||||
public:
|
||||
Bone(std::string,Vector3=Vector3::VEC_ZERO);
|
||||
std::string getName(){return name;}
|
||||
Bone(std::string,Vector3[3],Vector3=Vector3::VEC_ZERO,Quaternion=Quaternion::QUAT_W,Vector3=Vector3::VEC_ZERO);
|
||||
void setPosePos(Vector3 p);
|
||||
void setPoseRot(Quaternion r);
|
||||
void setPoseScale(Vector3 s);
|
||||
inline Vector3 getInitAxis(int i){return initAxis[i];}
|
||||
inline std::string getName(){return name;}
|
||||
inline Vector3 getRestPos(){return restPos;}
|
||||
inline Quaternion getRestRot(){return restRot;}
|
||||
inline Vector3 getRestScale(){return restScale;}
|
||||
inline Vector3 getPosePos(){return posePos;}
|
||||
inline Quaternion getPoseRot(){return poseRot;}
|
||||
inline Vector3 getPoseScale(){return poseScale;}
|
||||
private:
|
||||
std::string name;
|
||||
Vector3 yAxis,zAxis;
|
||||
Vector3 initAxis[3],restPos,posePos=Vector3::VEC_ZERO,restScale,poseScale=Vector3::VEC_IJK;
|
||||
Quaternion restRot,poseRot=Quaternion::QUAT_W;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user