LeeMcQueen / GameDemo

Demo
0 stars 0 forks source link

BoneTransformTrack class #5

Closed LeeMcQueen closed 3 years ago

LeeMcQueen commented 3 years ago

class BoneTransformTrack {

public:

BoneTransformTrack(){};
~BoneTransformTrack(){};

void setPositionTimestamps ( const std::vector<float> positionTimestamps ) { positionTimestamps_ = positionTimestamps; }
void setRotationTimestamps ( const std::vector<float> rotationTimestamps ) { rotationTimestamps_ = rotaationTimestamps; }
void setScaleTimestamps ( const std::vector<float> scaleTimestamps ) { scaleTimestamps_ = scaleTimestamps; }
void setPosition ( const std::vector<glm::vec3> position ) { position_ = position; }
void setRotation ( const std::vector<glm::quat> rotation ) { rotation_ = rotation; }
void setScale ( const std::vector<glm::vec3> scale ) { scale_ = scale; }
std::vector<float> getPositionTimestamps () const { return positionTimestamps_; }
std::vector<float> getRotationTimestamps () const { return rotationTimestamps_; }
std::vector<float> getScaleTimetamps() const { return scaleTimestamps_; }
std::vector<glm::vec3> getPosition () const { return position_; }
std::vector<glm::quat> getRotation () const { return rotation_; }
std::vector<glm::vec3> getScale () const { return scale_; }

private:

std::vector<float> positionTimestamps_;
std::vector<float> rotationTimestamps_;
std::vector<float> scaleTimestamps_;

std::vector<glm::vec3> position_;
std::vector<glm::quat> rotations_;
std::vector<glm::vec3> scales_;

}