Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
IKSolverComponent Struct Reference

Specifies target joint chains and goal targets for analytical 2-Bone or iterative FABRIK IK. More...

#include <IKSolver.hpp>

Public Attributes

IKSolverType solverType = IKSolverType::TwoBone
std::string startJointName
std::string middleJointName
std::string endJointName
std::vector< std::string > jointChainNames
int maxIterations = 10
float tolerance = 0.001f
glm::vec3 targetPosition { 0.0f }
glm::vec3 polePosition { 0.0f, 0.0f, 1.0f }
float targetWeight = 1.0f
bool enabled = false

Detailed Description

Specifies target joint chains and goal targets for analytical 2-Bone or iterative FABRIK IK.

Member Data Documentation

◆ enabled

bool IKSolverComponent::enabled = false

◆ endJointName

std::string IKSolverComponent::endJointName

◆ jointChainNames

std::vector<std::string> IKSolverComponent::jointChainNames

◆ maxIterations

int IKSolverComponent::maxIterations = 10

◆ middleJointName

std::string IKSolverComponent::middleJointName

◆ polePosition

glm::vec3 IKSolverComponent::polePosition { 0.0f, 0.0f, 1.0f }

◆ solverType

IKSolverType IKSolverComponent::solverType = IKSolverType::TwoBone

◆ startJointName

std::string IKSolverComponent::startJointName

◆ targetPosition

glm::vec3 IKSolverComponent::targetPosition { 0.0f }

◆ targetWeight

float IKSolverComponent::targetWeight = 1.0f

◆ tolerance

float IKSolverComponent::tolerance = 0.001f

The documentation for this struct was generated from the following file: