Anim 0.1
|
Class to solve an IK chain. More...
#include <CCDSolver.h>
Public Member Functions | |
ValueResult< gef::SkeletonPose > | CalculateCCD (gef::Vector4 const &targetPosition, std::vector< int > const &boneIndices, const std::optional< gef::SkeletonPose > &basePose={}) const |
Solves the IK chain. More... | |
void | SetSkinnedMesh (gef::SkinnedMeshInstance const &animatedModel) |
Sets the mesh this solver will solve for. | |
Class to solve an IK chain.
ValueResult< gef::SkeletonPose > AnimationSystem::Mesh::CCDSolver::CalculateCCD | ( | gef::Vector4 const & | targetPosition, |
std::vector< int > const & | boneIndices, | ||
const std::optional< gef::SkeletonPose > & | basePose = {} |
||
) | const |
Solves the IK chain.
targetPosition | The target for the end bone to reach |
boneIndices | The bones that will be affected by the IK |
basePose | The pose being affected |