29 int getBoneCount()
const;
33 int getParent(
int boneId)
const;
35 int getChildCount(
int boneId)
const;
37 int getChild(
int boneId,
int childIndex)
const;
40 float getLength(
int boneId)
const;
42 void setLength(
int boneId,
float length);
45 void setPosition(
int boneId,
float x,
float y,
float z);
47 float getX(
int boneId)
const;
49 float getY(
int boneId)
const;
51 float getZ(
int boneId)
const;
54 void setOrientation(
int boneId,
float x,
float y,
float z);
56 float getOrientationX(
int boneId)
const;
58 float getOrientationY(
int boneId)
const;
60 float getOrientationZ(
int boneId)
const;
63 void setRotation(
int boneId,
float yaw,
float pitch);
65 float getRotationYaw(
int boneId)
const;
67 float getRotationPitch(
int boneId)
const;
70 void setConstraints(
int boneId,
float minYaw,
float minPitch,
float maxYaw,
float maxPitch);
72 void clearConstraints(
int boneId);
74 bool hasConstraints(
int boneId)
const;
77 void initStraightPose(
float rootX = 0.f,
float rootY = 0.f,
float rootZ = 0.f);
81 void forwardKinematics();
83 void updateRotations();
86 float totalLengthTo(
int boneId)
const;
91 std::unique_ptr<Impl> impl_;
93 void requireBone(
int boneId)
const;
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Script-facing 3D skeleton + pose state. Local angles are yaw/pitch in the parent bone frame.
~Skeleton3D()
Releases skeleton and pose state.
Skeleton3D & operator=(const Skeleton3D &)=delete
Skeleton3D(const Skeleton3D &)=delete
int getRootId() const
Root bone id (always 0).
FABRIK solver for Skeleton3D. Script type: Solver3D.