AimIK.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. using UnityEngine;
  2. using System.Collections;
  3. namespace RootMotion.FinalIK {
  4. /// <summary>
  5. /// Aim %IK solver component.
  6. /// </summary>
  7. [HelpURL("https://www.youtube.com/watch?v=wT8fViZpLmQ&index=3&list=PLVxSIA1OaTOu8Nos3CalXbJ2DrKnntMv6")]
  8. [AddComponentMenu("Scripts/RootMotion.FinalIK/IK/Aim IK")]
  9. public class AimIK : 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/page1.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_aim_i_k.html");
  19. }
  20. // Open a video tutorial about setting up the component
  21. [ContextMenu("TUTORIAL VIDEO")]
  22. void OpenSetupTutorial() {
  23. Application.OpenURL("https://www.youtube.com/watch?v=wT8fViZpLmQ");
  24. }
  25. // Link to the Final IK Google Group
  26. [ContextMenu("Support Group")]
  27. void SupportGroup() {
  28. Application.OpenURL("https://groups.google.com/forum/#!forum/final-ik");
  29. }
  30. // Link to the Final IK Asset Store thread in the Unity Community
  31. [ContextMenu("Asset Store Thread")]
  32. void ASThread() {
  33. Application.OpenURL("http://forum.unity3d.com/threads/final-ik-full-body-ik-aim-look-at-fabrik-ccd-ik-1-0-released.222685/");
  34. }
  35. /// <summary>
  36. /// The Aim %IK solver.
  37. /// </summary>
  38. public IKSolverAim solver = new IKSolverAim();
  39. public override IKSolver GetIKSolver() {
  40. return solver as IKSolver;
  41. }
  42. }
  43. }