]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Person.h
Added convenient method to get target and current frames of Person animations
[lugaru.git] / Source / Person.h
index 21768a4f2494ea64fea340c33cea7ed62349fc1e..fbb62ebae210f81a45cef559115dcd2572f80b70 100644 (file)
@@ -328,6 +328,8 @@ public:
     inline Joint& joint(int bodypart) { return skeleton.joints[skeleton.jointlabels[bodypart]]; }
     inline XYZ& jointPos(int bodypart) { return joint(bodypart).position; }
     inline XYZ& jointVel(int bodypart) { return joint(bodypart).velocity; }
+    inline AnimationFrame& currentFrame() { return Animation::animations[animCurrent].frames[frameCurrent]; }
+    inline AnimationFrame& targetFrame() { return Animation::animations[animTarget].frames[frameTarget]; }
 
 
     void CheckKick();