PhysicalBone.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PhysicalBone" inherits="PhysicsBody" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. [b]Warning:[/b] With a non-uniform scale this node will probably not function as expected. Please make sure to keep its scale uniform (i.e. the same on all axes), and change the size(s) of its collision shape(s) instead.
  7. </description>
  8. <tutorials>
  9. </tutorials>
  10. <methods>
  11. <method name="apply_central_impulse">
  12. <return type="void" />
  13. <argument index="0" name="impulse" type="Vector3" />
  14. <description>
  15. </description>
  16. </method>
  17. <method name="apply_impulse">
  18. <return type="void" />
  19. <argument index="0" name="position" type="Vector3" />
  20. <argument index="1" name="impulse" type="Vector3" />
  21. <description>
  22. </description>
  23. </method>
  24. <method name="get_bone_id" qualifiers="const">
  25. <return type="int" />
  26. <description>
  27. </description>
  28. </method>
  29. <method name="get_simulate_physics">
  30. <return type="bool" />
  31. <description>
  32. </description>
  33. </method>
  34. <method name="is_simulating_physics">
  35. <return type="bool" />
  36. <description>
  37. </description>
  38. </method>
  39. <method name="is_static_body">
  40. <return type="bool" />
  41. <description>
  42. </description>
  43. </method>
  44. </methods>
  45. <members>
  46. <member name="body_offset" type="Transform" setter="set_body_offset" getter="get_body_offset" default="Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )">
  47. </member>
  48. <member name="bounce" type="float" setter="set_bounce" getter="get_bounce" default="0.0">
  49. </member>
  50. <member name="friction" type="float" setter="set_friction" getter="get_friction" default="1.0">
  51. </member>
  52. <member name="gravity_scale" type="float" setter="set_gravity_scale" getter="get_gravity_scale" default="1.0">
  53. </member>
  54. <member name="joint_offset" type="Transform" setter="set_joint_offset" getter="get_joint_offset" default="Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )">
  55. </member>
  56. <member name="joint_type" type="int" setter="set_joint_type" getter="get_joint_type" enum="PhysicalBone.JointType" default="0">
  57. </member>
  58. <member name="mass" type="float" setter="set_mass" getter="get_mass" default="1.0">
  59. </member>
  60. <member name="weight" type="float" setter="set_weight" getter="get_weight" default="9.8">
  61. </member>
  62. </members>
  63. <constants>
  64. <constant name="JOINT_TYPE_NONE" value="0" enum="JointType">
  65. </constant>
  66. <constant name="JOINT_TYPE_PIN" value="1" enum="JointType">
  67. </constant>
  68. <constant name="JOINT_TYPE_CONE" value="2" enum="JointType">
  69. </constant>
  70. <constant name="JOINT_TYPE_HINGE" value="3" enum="JointType">
  71. </constant>
  72. <constant name="JOINT_TYPE_SLIDER" value="4" enum="JointType">
  73. </constant>
  74. <constant name="JOINT_TYPE_6DOF" value="5" enum="JointType">
  75. </constant>
  76. </constants>
  77. </class>