24 void setKeepTrace(
bool keep);
26 bool getKeepTrace()
const;
31 int getMaxIterations()
const;
33 void setTolerance(
float tol);
35 float getTolerance()
const;
37 void setForce(
float force);
39 float getForce()
const;
42 void setInfluence(
float influence);
44 float getInfluence()
const;
49 void addTarget(
int boneId,
float x,
float y,
float z,
float weight = 1.f);
51 int getTargetCount()
const;
63 bool solveChain(
Skeleton3D *skeleton,
int rootBoneId,
int tipBoneId);
65 void stepChain(
Skeleton3D *skeleton,
int rootBoneId,
int tipBoneId,
float dt = 1.f);
72 void setPole(
float x,
float y,
float z,
float weight);
78 float getPoleWeight()
const;
84 void setTipRotation(
int boneId,
float yaw,
float pitch,
float weight);
86 void clearTipRotation();
88 float getTipRotationWeight()
const;
91 int getTraceSize()
const;
97 std::unique_ptr<Impl> impl_;
99 void requireChain(
Skeleton3D *skeleton,
int rootBoneId,
int tipBoneId)
const;
#define EVENGINE_API_FOUNDATION
每个链接组(link group)各自的导出宏。
Script-facing 3D skeleton + pose state. Local angles are yaw/pitch in the parent bone frame.
FABRIK solver for Skeleton3D. Script type: Solver3D.
Solver3D(const Solver3D &)=delete
Solver3D & operator=(const Solver3D &)=delete
~Solver3D()
Releases solver state.