载入中...
搜索中...
未找到
IK.cpp
浏览该文件的文档.
virtual std::string getName() const =0
Inverse Kinematics module — wraps header-only sunxfancy/ik.hpp (FABRIK). Script: ik <- eve....
Definition IK.h:19
Script-facing 2D skeleton + pose state (ik::skeleton2d + ik::ecs2d). Bone indices are stable after ea...
Definition Skeleton2D.h:12
void setOrientation(int boneId, float x, float y)
Definition Skeleton2D.cpp:116
void setRotation(int boneId, float angle)
Local hinge angle (radians) relative to parent forward.
Definition Skeleton2D.cpp:134
float totalLengthTo(int boneId) const
Definition Skeleton2D.cpp:189
bool hasConstraints(int boneId) const
Definition Skeleton2D.cpp:160
void initStraightPose(float rootX=0.f, float rootY=0.f)
Definition Skeleton2D.cpp:165
float getOrientationX(int boneId) const
Definition Skeleton2D.cpp:122
float getOrientationY(int boneId) const
Definition Skeleton2D.cpp:128
void setConstraints(int boneId, float minAngle, float maxAngle)
Joint limits for the single 2D hinge DOF.
Definition Skeleton2D.cpp:146
int createBone(int parentId, float length=1.f)
Create a child bone under parentId; returns new bone id.
Definition Skeleton2D.cpp:43
void setPosition(int boneId, float x, float y)
Definition Skeleton2D.cpp:98
int getChild(int boneId, int childIndex) const
Definition Skeleton2D.cpp:73
Script-facing 3D skeleton + pose state (ik::skeleton3d + ik::ecs3d). Local angles are yaw/pitch in th...
Definition Skeleton3D.h:11
void setPosition(int boneId, float x, float y, float z)
Definition Skeleton3D.cpp:98
void setConstraints(int boneId, float minYaw, float minPitch, float maxYaw, float maxPitch)
Definition Skeleton3D.cpp:164
int createBone(int parentId, float length=1.f)
Definition Skeleton3D.cpp:43
float getRotationPitch(int boneId) const
Definition Skeleton3D.cpp:158
void setRotation(int boneId, float yaw, float pitch)
Definition Skeleton3D.cpp:146
void setOrientation(int boneId, float x, float y, float z)
Definition Skeleton3D.cpp:122
void initStraightPose(float rootX=0.f, float rootY=0.f, float rootZ=0.f)
Definition Skeleton3D.cpp:184
float totalLengthTo(int boneId) const
Definition Skeleton3D.cpp:208
float getOrientationZ(int boneId) const
Definition Skeleton3D.cpp:140
float getOrientationY(int boneId) const
Definition Skeleton3D.cpp:134
bool hasConstraints(int boneId) const
Definition Skeleton3D.cpp:179
int getChild(int boneId, int childIndex) const
Definition Skeleton3D.cpp:73
float getOrientationX(int boneId) const
Definition Skeleton3D.cpp:128
float getRotationYaw(int boneId) const
Definition Skeleton3D.cpp:152
void setInfluence(float influence)
Overall pose blend: 0 = keep the input pose, 1 = full solve (default).
Definition Solver2D.cpp:43
void addTarget(int boneId, float x, float y, float weight=1.f)
Definition Solver2D.cpp:54
bool solve(Skeleton2D *skeleton)
Returns true if every target is within tolerance.
Definition Solver2D.cpp:65
bool solveChain(Skeleton2D *skeleton, int rootBoneId, int tipBoneId)
FABRIK solve restricted to the bone chain rootBoneId..tipBoneId. The chain root stays pinned and bone...
Definition Solver2D.cpp:104
void stepChain(Skeleton2D *skeleton, int rootBoneId, int tipBoneId, float dt=1.f)
Definition Solver2D.cpp:113
void addTarget(int boneId, float x, float y, float z, float weight=1.f)
Definition Solver3D.cpp:54
void setTipRotation(int boneId, float yaw, float pitch, float weight)
Tip orientation override: after solving, blends the tip bone's local yaw/pitch toward the given angle...
Definition Solver3D.cpp:186
float getTipRotationWeight() const
Definition Solver3D.cpp:203
void setInfluence(float influence)
Overall pose blend: 0 = keep the input pose, 1 = full solve (default).
Definition Solver3D.cpp:43
void stepChain(Skeleton3D *skeleton, int rootBoneId, int tipBoneId, float dt=1.f)
Definition Solver3D.cpp:118
bool solveChain(Skeleton3D *skeleton, int rootBoneId, int tipBoneId)
FABRIK solve restricted to the bone chain rootBoneId..tipBoneId. The chain root stays pinned and bone...
Definition Solver3D.cpp:106
void setPole(float x, float y, float z, float weight)
Pole vector (magnet / hint): pulls the middle joints of a chain toward a point so the limb bends in t...
Definition Solver3D.cpp:171
Definition ChainSolver.h:10