IKSolver.pkg 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. $#include "IK/IKSolver.h"
  2. class IKSolver : public Component
  3. {
  4. enum Algorithm
  5. {
  6. FABRIK
  7. };
  8. Algorithm GetAlgorithm() const;
  9. void SetAlgorithm(Algorithm algorithm);
  10. unsigned GetMaximumIterations() const;
  11. void SetMaximumIterations(unsigned iterations);
  12. float GetTolerance() const;
  13. void SetTolerance(float tolerance);
  14. bool BoneRotationsEnabled() const;
  15. void EnableBoneRotations(bool enable);
  16. bool TargetRotationEnabled() const;
  17. void EnableTargetRotation(bool enable);
  18. bool ContinuousSolvingEnabled() const;
  19. void EnableContinuousSolving(bool enable);
  20. bool UpdatePoseEnabled() const;
  21. void EnableUpdatePose(bool enable);
  22. bool AutoSolveEnabled() const;
  23. void EnableAutoSolve(bool enable);
  24. void Solve();
  25. void ResetToInitialPose();
  26. void UpdateInitialPose();
  27. void MarkSolverTreeDirty();
  28. void DrawDebugGeometry(bool depthTest);
  29. tolua_property__get_set Algorithm algorithm;
  30. tolua_property__get_set unsigned maximumIterations;
  31. tolua_property__get_set float tolerance;
  32. };