1#ifndef NANOMMO_CLIENT_MOVES_H_
2#define NANOMMO_CLIENT_MOVES_H_
8#include "content/skills.pb.h"
14 "Hips",
"Spine",
"Spine2",
"Head",
"RightArm",
15 "RightForeArm",
"RightHand",
"LeftArm",
"LeftForeArm",
"RightUpLeg",
16 "RightLeg",
"LeftUpLeg",
"LeftLeg"};
25 Vector3
shift{0.0f, 0.0f, 0.0f};
31Bend
BendAt(
const skills::Move& move,
float ms);
36void Turn(
const Bend& bend,
const Joints& joints,
float metre,
37 const ModelSkeleton& skeleton, Transform* pose);
41void Apply(
const Bend& bend,
const Joints& joints,
float metre, Model& model);
void Turn(const Bend &bend, const Joints &joints, float metre, const ModelSkeleton &skeleton, Transform *pose)
void Apply(const Bend &bend, const Joints &joints, float metre, Model &model)
constexpr std::array< const char *, 13 > kJointBones
Each joint's bone in the rig, in the order of the joints.
Joints FindJoints(const Model &model)
Bend BendAt(const skills::Move &move, float ms)
The move, ms into it, between the keys either side.
std::array< int, kJointBones.size()> Joints
Where a model's bones are, by joint, or -1 for one it doesn't have.
std::array< Quaternion, kJointBones.size()> turns