FABRIKRoot.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace RootMotion.FinalIK {
  4. /// <summary>
  5. /// %IK system for multiple branched %FABRIK chains.
  6. /// </summary>
  7. [HelpURL("http://www.root-motion.com/finalikdox/html/page7.html")]
  8. [AddComponentMenu("Scripts/RootMotion.FinalIK/IK/FABRIK Root")]
  9. public class FABRIKRoot : IK {
  10. // Open the User Manual URL
  11. [ContextMenu("User Manual")]
  12. protected override void OpenUserManual() {
  13. Application.OpenURL("http://www.root-motion.com/finalikdox/html/page7.html");
  14. }
  15. // Open the Script Reference URL
  16. [ContextMenu("Scrpt Reference")]
  17. protected override void OpenScriptReference() {
  18. Application.OpenURL("http://www.root-motion.com/finalikdox/html/class_root_motion_1_1_final_i_k_1_1_f_a_b_r_i_k_root.html");
  19. }
  20. // Link to the Final IK Google Group
  21. [ContextMenu("Support Group")]
  22. void SupportGroup() {
  23. Application.OpenURL("https://groups.google.com/forum/#!forum/final-ik");
  24. }
  25. // Link to the Final IK Asset Store thread in the Unity Community
  26. [ContextMenu("Asset Store Thread")]
  27. void ASThread() {
  28. Application.OpenURL("http://forum.unity3d.com/threads/final-ik-full-body-ik-aim-look-at-fabrik-ccd-ik-1-0-released.222685/");
  29. }
  30. /// <summary>
  31. /// The %FABRIKRoot solver.
  32. /// </summary>
  33. public IKSolverFABRIKRoot solver = new IKSolverFABRIKRoot();
  34. public override IKSolver GetIKSolver() {
  35. return solver as IKSolver;
  36. }
  37. }
  38. }