how-to.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. Here is a rescue operation animation.
  2. => 1/ You have to include the model Rescue-Op.xml at the right place on your model with
  3. <model>
  4. <name>Rescue-Op</name>
  5. <path>your_path/Rescue-Op.xml</path>
  6. <offsets>
  7. <x-m>N</x-m>
  8. <y-m>N</y-m>
  9. <z-m>N</z-m>
  10. </offsets>
  11. </model>
  12. => 2/ You may include the model Rescue-Man.xml at the right place on your model with
  13. <model>
  14. <name>Rescue-Man</name>
  15. <path>your_path/Rescue-Op.xml</path>
  16. <offsets>
  17. <x-m>N</x-m>
  18. <y-m>N</y-m>
  19. <z-m>N</z-m>
  20. </offsets>
  21. </model>
  22. BEWARE: the offset value are the place of the object , with top of the rope under bottom of the winch.
  23. the rope has 10 meters lengh
  24. => 3/ Don't forget to give the right initialization value to the property
  25. Here in the -set.xml file
  26. <sim>
  27. <model>
  28. <rescue-lift>1</rescue-lift>
  29. <rescue type="bool">false</rescue>
  30. </model>
  31. </sim/>
  32. => 4/ The key to activate the process depends on your choice
  33. Here my choice (not the best)
  34. <key n="114">
  35. <name>r</name>
  36. <desc>Toggle Rescue</desc>
  37. <binding>
  38. <command>property-toggle</command>
  39. <property>/sim/model/rescue</property>
  40. </binding>
  41. </key>
  42. <key n="109">
  43. <name>m</name>
  44. <desc>Lift Winch</desc>
  45. <repeatable type="bool">true</repeatable>
  46. <binding>
  47. <command>property-adjust</command>
  48. <property>/sim/model/rescue-lift</property>
  49. <step type="double">-0.01</step>
  50. <min>0.0</min>
  51. <max>1</max>
  52. </binding>
  53. </key>
  54. <key n="77">
  55. <name>M</name>
  56. <desc>Down Winch</desc>
  57. <repeatable type="bool">true</repeatable>
  58. <binding>
  59. <command>property-adjust</command>
  60. <property>/sim/model/rescue-lift</property>
  61. <step type="double">0.01</step>
  62. <min>0.0</min>
  63. <max>1</max>
  64. </binding>
  65. </key>