X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=fbb62ebae210f81a45cef559115dcd2572f80b70;hb=4a34d824c925ea0766c7ffa9355a3de026e57672;hp=21768a4f2494ea64fea340c33cea7ed62349fc1e;hpb=9bd0be2befdf81aa4b5d377eaf29656935044faf;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 21768a4..fbb62eb 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -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();