PhysicsDirectSpaceState.xml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="PhysicsDirectSpaceState" inherits="Object" category="Core" version="3.0.alpha.custom_build">
  3. <brief_description>
  4. </brief_description>
  5. <description>
  6. </description>
  7. <tutorials>
  8. </tutorials>
  9. <demos>
  10. </demos>
  11. <methods>
  12. <method name="cast_motion">
  13. <return type="Array">
  14. </return>
  15. <argument index="0" name="shape" type="PhysicsShapeQueryParameters">
  16. </argument>
  17. <argument index="1" name="motion" type="Vector3">
  18. </argument>
  19. <description>
  20. </description>
  21. </method>
  22. <method name="collide_shape">
  23. <return type="Array">
  24. </return>
  25. <argument index="0" name="shape" type="PhysicsShapeQueryParameters">
  26. </argument>
  27. <argument index="1" name="max_results" type="int" default="32">
  28. </argument>
  29. <description>
  30. </description>
  31. </method>
  32. <method name="get_rest_info">
  33. <return type="Dictionary">
  34. </return>
  35. <argument index="0" name="shape" type="PhysicsShapeQueryParameters">
  36. </argument>
  37. <description>
  38. </description>
  39. </method>
  40. <method name="intersect_ray">
  41. <return type="Dictionary">
  42. </return>
  43. <argument index="0" name="from" type="Vector3">
  44. </argument>
  45. <argument index="1" name="to" type="Vector3">
  46. </argument>
  47. <argument index="2" name="exclude" type="Array" default="[ ]">
  48. </argument>
  49. <argument index="3" name="collision_layer" type="int" default="2147483647">
  50. </argument>
  51. <argument index="4" name="type_mask" type="int" default="15">
  52. </argument>
  53. <description>
  54. </description>
  55. </method>
  56. <method name="intersect_shape">
  57. <return type="Array">
  58. </return>
  59. <argument index="0" name="shape" type="PhysicsShapeQueryParameters">
  60. </argument>
  61. <argument index="1" name="max_results" type="int" default="32">
  62. </argument>
  63. <description>
  64. </description>
  65. </method>
  66. </methods>
  67. <constants>
  68. <constant name="TYPE_MASK_STATIC_BODY" value="1">
  69. </constant>
  70. <constant name="TYPE_MASK_KINEMATIC_BODY" value="2">
  71. </constant>
  72. <constant name="TYPE_MASK_RIGID_BODY" value="4">
  73. </constant>
  74. <constant name="TYPE_MASK_CHARACTER_BODY" value="8">
  75. </constant>
  76. <constant name="TYPE_MASK_COLLISION" value="15">
  77. </constant>
  78. <constant name="TYPE_MASK_AREA" value="16">
  79. </constant>
  80. </constants>
  81. </class>