Anim 0.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
AnimationSystem::Mesh::CCDSolver Class Reference

Class to solve an IK chain. More...

#include <CCDSolver.h>

Collaboration diagram for AnimationSystem::Mesh::CCDSolver:

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.
 

Detailed Description

Class to solve an IK chain.

Member Function Documentation

◆ CalculateCCD()

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.

Parameters
targetPositionThe target for the end bone to reach
boneIndicesThe bones that will be affected by the IK
basePoseThe pose being affected
Returns
The solved pose, or as close to this as possible, or an ERROR if one was discovered

The documentation for this class was generated from the following files: