@defold-typescript/types 0.53.0 → 0.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (335) hide show
  1. package/dist/cli-runtime.js +8966 -0
  2. package/dist/identity-vocabulary.json +660 -0
  3. package/dist/src/index.d.ts +18 -0
  4. package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
  5. package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
  6. package/fixtures/defold-1.12.4/base_doc.json +758 -0
  7. package/fixtures/defold-1.12.4/bit_doc.json +404 -0
  8. package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
  9. package/fixtures/defold-1.12.4/camera_doc.json +664 -0
  10. package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
  11. package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
  12. package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
  13. package/fixtures/defold-1.12.4/crash_doc.json +497 -0
  14. package/fixtures/defold-1.12.4/debug_doc.json +410 -0
  15. package/fixtures/defold-1.12.4/factory_doc.json +219 -0
  16. package/fixtures/defold-1.12.4/font_doc.json +141 -0
  17. package/fixtures/defold-1.12.4/globals_doc.json +42 -0
  18. package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
  19. package/fixtures/defold-1.12.4/go_doc.json +1901 -0
  20. package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
  21. package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
  22. package/fixtures/defold-1.12.4/html5_doc.json +64 -0
  23. package/fixtures/defold-1.12.4/http_doc.json +66 -0
  24. package/fixtures/defold-1.12.4/image_doc.json +170 -0
  25. package/fixtures/defold-1.12.4/io_doc.json +399 -0
  26. package/fixtures/defold-1.12.4/json_doc.json +97 -0
  27. package/fixtures/defold-1.12.4/label_doc.json +220 -0
  28. package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
  29. package/fixtures/defold-1.12.4/math_doc.json +702 -0
  30. package/fixtures/defold-1.12.4/messages_doc.json +579 -0
  31. package/fixtures/defold-1.12.4/model_doc.json +315 -0
  32. package/fixtures/defold-1.12.4/msg_doc.json +137 -0
  33. package/fixtures/defold-1.12.4/os_doc.json +266 -0
  34. package/fixtures/defold-1.12.4/package_doc.json +139 -0
  35. package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
  36. package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
  37. package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
  38. package/fixtures/defold-1.12.4/render_doc.json +1167 -0
  39. package/fixtures/defold-1.12.4/resource_doc.json +762 -0
  40. package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
  41. package/fixtures/defold-1.12.4/sound_doc.json +582 -0
  42. package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
  43. package/fixtures/defold-1.12.4/string_doc.json +412 -0
  44. package/fixtures/defold-1.12.4/sys_doc.json +853 -0
  45. package/fixtures/defold-1.12.4/table_doc.json +166 -0
  46. package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
  47. package/fixtures/defold-1.12.4/timer_doc.json +153 -0
  48. package/fixtures/defold-1.12.4/types_doc.json +212 -0
  49. package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
  50. package/fixtures/defold-1.12.4/window_doc.json +388 -0
  51. package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
  52. package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
  53. package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
  54. package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
  55. package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
  56. package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
  57. package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
  58. package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
  59. package/fixtures/defold-1.13.0/base_doc.json +758 -0
  60. package/fixtures/defold-1.13.0/bit_doc.json +404 -0
  61. package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
  62. package/fixtures/defold-1.13.0/camera_doc.json +900 -0
  63. package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
  64. package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
  65. package/fixtures/defold-1.13.0/compute_doc.json +182 -0
  66. package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
  67. package/fixtures/defold-1.13.0/crash_doc.json +497 -0
  68. package/fixtures/defold-1.13.0/debug_doc.json +410 -0
  69. package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
  70. package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
  71. package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
  72. package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
  73. package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
  74. package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
  75. package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
  76. package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
  77. package/fixtures/defold-1.13.0/factory_doc.json +219 -0
  78. package/fixtures/defold-1.13.0/font_doc.json +141 -0
  79. package/fixtures/defold-1.13.0/globals_doc.json +42 -0
  80. package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
  81. package/fixtures/defold-1.13.0/go_doc.json +1989 -0
  82. package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
  83. package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
  84. package/fixtures/defold-1.13.0/html5_doc.json +64 -0
  85. package/fixtures/defold-1.13.0/http_doc.json +66 -0
  86. package/fixtures/defold-1.13.0/image_doc.json +170 -0
  87. package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
  88. package/fixtures/defold-1.13.0/io_doc.json +399 -0
  89. package/fixtures/defold-1.13.0/json_doc.json +97 -0
  90. package/fixtures/defold-1.13.0/label_doc.json +220 -0
  91. package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
  92. package/fixtures/defold-1.13.0/material_doc.json +238 -0
  93. package/fixtures/defold-1.13.0/math_doc.json +702 -0
  94. package/fixtures/defold-1.13.0/model_doc.json +412 -0
  95. package/fixtures/defold-1.13.0/msg_doc.json +137 -0
  96. package/fixtures/defold-1.13.0/os_doc.json +266 -0
  97. package/fixtures/defold-1.13.0/package_doc.json +139 -0
  98. package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
  99. package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
  100. package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
  101. package/fixtures/defold-1.13.0/render_doc.json +1381 -0
  102. package/fixtures/defold-1.13.0/resource_doc.json +762 -0
  103. package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
  104. package/fixtures/defold-1.13.0/sound_doc.json +582 -0
  105. package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
  106. package/fixtures/defold-1.13.0/string_doc.json +412 -0
  107. package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
  108. package/fixtures/defold-1.13.0/table_doc.json +166 -0
  109. package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
  110. package/fixtures/defold-1.13.0/timer_doc.json +153 -0
  111. package/fixtures/defold-1.13.0/types_doc.json +212 -0
  112. package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
  113. package/fixtures/defold-1.13.0/window_doc.json +388 -0
  114. package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
  115. package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
  116. package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
  117. package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
  118. package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
  119. package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
  120. package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
  121. package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
  122. package/fixtures/defold-1.13.1/base_doc.json +758 -0
  123. package/fixtures/defold-1.13.1/bit_doc.json +404 -0
  124. package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
  125. package/fixtures/defold-1.13.1/camera_doc.json +900 -0
  126. package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
  127. package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
  128. package/fixtures/defold-1.13.1/compute_doc.json +182 -0
  129. package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
  130. package/fixtures/defold-1.13.1/crash_doc.json +497 -0
  131. package/fixtures/defold-1.13.1/debug_doc.json +410 -0
  132. package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
  133. package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
  134. package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
  135. package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
  136. package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
  137. package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
  138. package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
  139. package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
  140. package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
  141. package/fixtures/defold-1.13.1/factory_doc.json +219 -0
  142. package/fixtures/defold-1.13.1/font_doc.json +141 -0
  143. package/fixtures/defold-1.13.1/globals_doc.json +42 -0
  144. package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
  145. package/fixtures/defold-1.13.1/go_doc.json +1989 -0
  146. package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
  147. package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
  148. package/fixtures/defold-1.13.1/html5_doc.json +64 -0
  149. package/fixtures/defold-1.13.1/http_doc.json +66 -0
  150. package/fixtures/defold-1.13.1/image_doc.json +170 -0
  151. package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
  152. package/fixtures/defold-1.13.1/io_doc.json +399 -0
  153. package/fixtures/defold-1.13.1/json_doc.json +97 -0
  154. package/fixtures/defold-1.13.1/label_doc.json +220 -0
  155. package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
  156. package/fixtures/defold-1.13.1/material_doc.json +238 -0
  157. package/fixtures/defold-1.13.1/math_doc.json +702 -0
  158. package/fixtures/defold-1.13.1/model_doc.json +412 -0
  159. package/fixtures/defold-1.13.1/msg_doc.json +137 -0
  160. package/fixtures/defold-1.13.1/os_doc.json +266 -0
  161. package/fixtures/defold-1.13.1/package_doc.json +139 -0
  162. package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
  163. package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
  164. package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
  165. package/fixtures/defold-1.13.1/render_doc.json +1381 -0
  166. package/fixtures/defold-1.13.1/resource_doc.json +762 -0
  167. package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
  168. package/fixtures/defold-1.13.1/sound_doc.json +582 -0
  169. package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
  170. package/fixtures/defold-1.13.1/string_doc.json +412 -0
  171. package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
  172. package/fixtures/defold-1.13.1/table_doc.json +166 -0
  173. package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
  174. package/fixtures/defold-1.13.1/timer_doc.json +153 -0
  175. package/fixtures/defold-1.13.1/types_doc.json +212 -0
  176. package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
  177. package/fixtures/defold-1.13.1/window_doc.json +388 -0
  178. package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
  179. package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
  180. package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
  181. package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
  182. package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
  183. package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
  184. package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
  185. package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
  186. package/fixtures/defold-1.13.2/base_doc.json +759 -0
  187. package/fixtures/defold-1.13.2/bit_doc.json +405 -0
  188. package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
  189. package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
  190. package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
  191. package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
  192. package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
  193. package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
  194. package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
  195. package/fixtures/defold-1.13.2/camera_doc.json +887 -0
  196. package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
  197. package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
  198. package/fixtures/defold-1.13.2/compute_doc.json +183 -0
  199. package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
  200. package/fixtures/defold-1.13.2/crash_doc.json +483 -0
  201. package/fixtures/defold-1.13.2/debug_doc.json +411 -0
  202. package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
  203. package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
  204. package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
  205. package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
  206. package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
  207. package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
  208. package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
  209. package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
  210. package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
  211. package/fixtures/defold-1.13.2/factory_doc.json +206 -0
  212. package/fixtures/defold-1.13.2/font_doc.json +230 -0
  213. package/fixtures/defold-1.13.2/globals_doc.json +64 -0
  214. package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
  215. package/fixtures/defold-1.13.2/go_doc.json +1789 -0
  216. package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
  217. package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
  218. package/fixtures/defold-1.13.2/html5_doc.json +65 -0
  219. package/fixtures/defold-1.13.2/http_doc.json +174 -0
  220. package/fixtures/defold-1.13.2/image_doc.json +298 -0
  221. package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
  222. package/fixtures/defold-1.13.2/io_doc.json +400 -0
  223. package/fixtures/defold-1.13.2/json_doc.json +140 -0
  224. package/fixtures/defold-1.13.2/label_doc.json +427 -0
  225. package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
  226. package/fixtures/defold-1.13.2/material_doc.json +773 -0
  227. package/fixtures/defold-1.13.2/math_doc.json +703 -0
  228. package/fixtures/defold-1.13.2/model_doc.json +472 -0
  229. package/fixtures/defold-1.13.2/msg_doc.json +169 -0
  230. package/fixtures/defold-1.13.2/os_doc.json +269 -0
  231. package/fixtures/defold-1.13.2/package_doc.json +140 -0
  232. package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
  233. package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
  234. package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
  235. package/fixtures/defold-1.13.2/render_doc.json +1623 -0
  236. package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
  237. package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
  238. package/fixtures/defold-1.13.2/sound_doc.json +673 -0
  239. package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
  240. package/fixtures/defold-1.13.2/string_doc.json +413 -0
  241. package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
  242. package/fixtures/defold-1.13.2/table_doc.json +167 -0
  243. package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
  244. package/fixtures/defold-1.13.2/timer_doc.json +214 -0
  245. package/fixtures/defold-1.13.2/types_doc.json +213 -0
  246. package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
  247. package/fixtures/defold-1.13.2/window_doc.json +426 -0
  248. package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
  249. package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
  250. package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
  251. package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
  252. package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
  253. package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
  254. package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
  255. package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
  256. package/fixtures/defold-1.14.0/base_doc.json +759 -0
  257. package/fixtures/defold-1.14.0/bit_doc.json +405 -0
  258. package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
  259. package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
  260. package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
  261. package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
  262. package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
  263. package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
  264. package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
  265. package/fixtures/defold-1.14.0/camera_doc.json +887 -0
  266. package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
  267. package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
  268. package/fixtures/defold-1.14.0/compute_doc.json +183 -0
  269. package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
  270. package/fixtures/defold-1.14.0/crash_doc.json +483 -0
  271. package/fixtures/defold-1.14.0/debug_doc.json +411 -0
  272. package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
  273. package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
  274. package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
  275. package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
  276. package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
  277. package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
  278. package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
  279. package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
  280. package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
  281. package/fixtures/defold-1.14.0/factory_doc.json +206 -0
  282. package/fixtures/defold-1.14.0/font_doc.json +230 -0
  283. package/fixtures/defold-1.14.0/globals_doc.json +64 -0
  284. package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
  285. package/fixtures/defold-1.14.0/go_doc.json +1789 -0
  286. package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
  287. package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
  288. package/fixtures/defold-1.14.0/html5_doc.json +65 -0
  289. package/fixtures/defold-1.14.0/http_doc.json +174 -0
  290. package/fixtures/defold-1.14.0/image_doc.json +298 -0
  291. package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
  292. package/fixtures/defold-1.14.0/io_doc.json +400 -0
  293. package/fixtures/defold-1.14.0/json_doc.json +140 -0
  294. package/fixtures/defold-1.14.0/label_doc.json +427 -0
  295. package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
  296. package/fixtures/defold-1.14.0/material_doc.json +773 -0
  297. package/fixtures/defold-1.14.0/math_doc.json +703 -0
  298. package/fixtures/defold-1.14.0/model_doc.json +472 -0
  299. package/fixtures/defold-1.14.0/msg_doc.json +169 -0
  300. package/fixtures/defold-1.14.0/os_doc.json +269 -0
  301. package/fixtures/defold-1.14.0/package_doc.json +140 -0
  302. package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
  303. package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
  304. package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
  305. package/fixtures/defold-1.14.0/render_doc.json +1628 -0
  306. package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
  307. package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
  308. package/fixtures/defold-1.14.0/sound_doc.json +673 -0
  309. package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
  310. package/fixtures/defold-1.14.0/string_doc.json +413 -0
  311. package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
  312. package/fixtures/defold-1.14.0/table_doc.json +167 -0
  313. package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
  314. package/fixtures/defold-1.14.0/timer_doc.json +214 -0
  315. package/fixtures/defold-1.14.0/types_doc.json +213 -0
  316. package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
  317. package/fixtures/defold-1.14.0/window_doc.json +426 -0
  318. package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
  319. package/package.json +13 -6
  320. package/scripts/cli-runtime.ts +18 -0
  321. package/scripts/example-store-io.ts +2 -2
  322. package/scripts/extension-goldens.ts +9 -5
  323. package/scripts/generate-api-availability.ts +1 -1
  324. package/scripts/generate-api-signatures.ts +1 -1
  325. package/scripts/import-defold-release.ts +1 -1
  326. package/scripts/regen.ts +35 -9
  327. package/scripts/signature-store-fs.ts +37 -17
  328. package/scripts/sync-api-docs.ts +127 -20
  329. package/src/api-doc.ts +11 -4
  330. package/src/emit-dts.ts +115 -21
  331. package/src/index-slot-classifications.ts +75 -9
  332. package/src/index.ts +3 -1
  333. package/src/publish-dts.ts +16 -0
  334. package/src/script-api.ts +36 -38
  335. package/src/library-index-slot-classifications.ts +0 -332
@@ -0,0 +1,2428 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "CONSTANT",
5
+ "name": "b2d.body.B2_STATIC_BODY",
6
+ "brief": "Static (immovable) body",
7
+ "description": "Static (immovable) body",
8
+ "returnvalues": [],
9
+ "parameters": [],
10
+ "examples": "",
11
+ "replaces": "",
12
+ "error": "",
13
+ "tparams": [],
14
+ "members": [],
15
+ "notes": [],
16
+ "language": ""
17
+ },
18
+ {
19
+ "type": "CONSTANT",
20
+ "name": "b2d.body.B2_KINEMATIC_BODY",
21
+ "brief": "Kinematic body",
22
+ "description": "Kinematic body",
23
+ "returnvalues": [],
24
+ "parameters": [],
25
+ "examples": "",
26
+ "replaces": "",
27
+ "error": "",
28
+ "tparams": [],
29
+ "members": [],
30
+ "notes": [],
31
+ "language": ""
32
+ },
33
+ {
34
+ "type": "CONSTANT",
35
+ "name": "b2d.body.B2_DYNAMIC_BODY",
36
+ "brief": "Dynamic body",
37
+ "description": "Dynamic body",
38
+ "returnvalues": [],
39
+ "parameters": [],
40
+ "examples": "",
41
+ "replaces": "",
42
+ "error": "",
43
+ "tparams": [],
44
+ "members": [],
45
+ "notes": [],
46
+ "language": ""
47
+ },
48
+ {
49
+ "type": "FUNCTION",
50
+ "name": "b2d.body.create_fixture",
51
+ "brief": "Creates a fixture and attach it to this body. Use ...",
52
+ "description": "Creates a fixture and attach it to this body. Use this function if you need\nto set some fixture parameters, like friction. Otherwise you can create the\nfixture directly from a shape.\nIf the density is non-zero, this function automatically updates the mass of the body.\nContacts are not created until the next time step.",
53
+ "returnvalues": [
54
+ {
55
+ "name": "fixture",
56
+ "doc": "fixture info table with <code>index</code>, <code>type</code>, <code>sensor</code>, <code>density</code>, <code>friction</code>, <code>restitution</code>, and <code>child_count</code>",
57
+ "types": ["table"]
58
+ }
59
+ ],
60
+ "parameters": [
61
+ {
62
+ "name": "body",
63
+ "doc": "body",
64
+ "types": ["b2Body"],
65
+ "is_optional": "False"
66
+ },
67
+ {
68
+ "name": "definition",
69
+ "doc": "fixture definition table with:\n<code>shape</code> = shape table, <code>friction</code> = number, <code>restitution</code> = number,\n<code>density</code> = number, <code>sensor</code> = boolean, and optional <code>filter</code> table.\nSupported shape tables are:\n<code>circle</code> = <code>{ type = b2d.shape.SHAPE_TYPE_CIRCLE, radius = number, center = vector3_or_nil }</code>\n<code>edge</code> = <code>{ type = b2d.shape.SHAPE_TYPE_EDGE, v1 = vector3, v2 = vector3, v0 = vector3_or_nil, v3 = vector3_or_nil }</code>\n<code>polygon</code> = <code>{ type = b2d.shape.SHAPE_TYPE_POLYGON, vertices = { vector3, ... } }</code>\n<code>box</code> = <code>{ type = b2d.shape.SHAPE_TYPE_BOX, hx = number, hy = number, center = vector3_or_nil, angle = radians_or_nil }</code>\n<code>chain</code> = <code>{ type = b2d.shape.SHAPE_TYPE_CHAIN, vertices = { vector3, ... }, loop = boolean_or_nil, prev_vertex = vector3_or_nil, next_vertex = vector3_or_nil }</code>",
70
+ "types": ["table"],
71
+ "is_optional": "False"
72
+ }
73
+ ],
74
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">body</span> <span class=\"o\">=</span> <span class=\"n\">b2d</span><span class=\"p\">.</span><span class=\"n\">get_body</span><span class=\"p\">(</span><span class=\"s2\">&quot;#collisionobject&quot;</span><span class=\"p\">)</span>\n\n<span class=\"kd\">local</span> <span class=\"n\">triangle</span> <span class=\"o\">=</span> <span class=\"n\">b2d</span><span class=\"p\">.</span><span class=\"n\">body</span><span class=\"p\">.</span><span class=\"n\">create_fixture</span><span class=\"p\">(</span><span class=\"n\">body</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">density</span> <span class=\"o\">=</span> <span class=\"mf\">1.0</span><span class=\"p\">,</span>\n <span class=\"n\">friction</span> <span class=\"o\">=</span> <span class=\"mf\">0.3</span><span class=\"p\">,</span>\n <span class=\"n\">shape</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"nb\">type</span> <span class=\"o\">=</span> <span class=\"n\">b2d</span><span class=\"p\">.</span><span class=\"n\">shape</span><span class=\"p\">.</span><span class=\"n\">SHAPE_TYPE_POLYGON</span><span class=\"p\">,</span>\n <span class=\"n\">vertices</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"o\">-</span><span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"o\">-</span><span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span> <span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"o\">-</span><span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"p\">},</span>\n <span class=\"p\">},</span>\n<span class=\"p\">})</span>\n</code></pre></div>",
75
+ "replaces": "",
76
+ "error": "",
77
+ "tparams": [],
78
+ "members": [],
79
+ "notes": [],
80
+ "language": ""
81
+ },
82
+ {
83
+ "type": "FUNCTION",
84
+ "name": "b2d.body.create_fixture",
85
+ "brief": "Creates a fixture from a shape and attach it to th...",
86
+ "description": "Creates a fixture from a shape and attach it to this body.\nThis is a convenience function. Use b2FixtureDef if you need to set parameters\nlike friction, restitution, user data, or filtering.\nIf the density is non-zero, this function automatically updates the mass of the body.",
87
+ "returnvalues": [],
88
+ "parameters": [
89
+ {
90
+ "name": "body",
91
+ "doc": "body",
92
+ "types": ["b2Body"],
93
+ "is_optional": "False"
94
+ },
95
+ {
96
+ "name": "shape",
97
+ "doc": "the shape to be cloned.",
98
+ "types": ["b2Shape"],
99
+ "is_optional": "False"
100
+ },
101
+ {
102
+ "name": "density",
103
+ "doc": "the shape density (set to zero for static bodies).",
104
+ "types": ["number"],
105
+ "is_optional": "False"
106
+ }
107
+ ],
108
+ "examples": "",
109
+ "replaces": "",
110
+ "error": "",
111
+ "tparams": [],
112
+ "members": [],
113
+ "notes": [],
114
+ "language": ""
115
+ },
116
+ {
117
+ "type": "FUNCTION",
118
+ "name": "b2d.body.set_transform",
119
+ "brief": "Set the position of the body's origin and rotation",
120
+ "description": "Set the position of the body's origin and rotation.\nThis breaks any contacts and wakes the other bodies.\nManipulating a body's transform may cause non-physical behavior.",
121
+ "returnvalues": [],
122
+ "parameters": [
123
+ {
124
+ "name": "body",
125
+ "doc": "body",
126
+ "types": ["b2Body"],
127
+ "is_optional": "False"
128
+ },
129
+ {
130
+ "name": "position",
131
+ "doc": "the world position of the body's local origin.",
132
+ "types": ["vector3"],
133
+ "is_optional": "False"
134
+ },
135
+ {
136
+ "name": "angle",
137
+ "doc": "the world position of the body's local origin.",
138
+ "types": ["number"],
139
+ "is_optional": "False"
140
+ }
141
+ ],
142
+ "examples": "",
143
+ "replaces": "",
144
+ "error": "",
145
+ "tparams": [],
146
+ "members": [],
147
+ "notes": [],
148
+ "language": ""
149
+ },
150
+ {
151
+ "type": "FUNCTION",
152
+ "name": "b2d.body.get_transform",
153
+ "brief": "Get the body transform for the body's origin.",
154
+ "description": "Get the body transform for the body's origin.",
155
+ "returnvalues": [
156
+ {
157
+ "name": "transform",
158
+ "doc": "table with <code>position</code> and <code>angle</code> in radians.",
159
+ "types": ["table"]
160
+ }
161
+ ],
162
+ "parameters": [
163
+ {
164
+ "name": "body",
165
+ "doc": "body",
166
+ "types": ["b2Body"],
167
+ "is_optional": "False"
168
+ }
169
+ ],
170
+ "examples": "",
171
+ "replaces": "",
172
+ "error": "",
173
+ "tparams": [],
174
+ "members": [],
175
+ "notes": [],
176
+ "language": ""
177
+ },
178
+ {
179
+ "type": "FUNCTION",
180
+ "name": "b2d.body.get_position",
181
+ "brief": "Get the world body origin position.",
182
+ "description": "Get the world body origin position.",
183
+ "returnvalues": [
184
+ {
185
+ "name": "position",
186
+ "doc": "the world position of the body's origin.",
187
+ "types": ["vector3"]
188
+ }
189
+ ],
190
+ "parameters": [
191
+ {
192
+ "name": "body",
193
+ "doc": "body",
194
+ "types": ["b2Body"],
195
+ "is_optional": "False"
196
+ }
197
+ ],
198
+ "examples": "",
199
+ "replaces": "",
200
+ "error": "",
201
+ "tparams": [],
202
+ "members": [],
203
+ "notes": [],
204
+ "language": ""
205
+ },
206
+ {
207
+ "type": "FUNCTION",
208
+ "name": "b2d.body.get_world_center",
209
+ "brief": "Get the angle in radians.",
210
+ "description": "Get the angle in radians.",
211
+ "returnvalues": [
212
+ {
213
+ "name": "angle",
214
+ "doc": "the current world rotation angle in radians.",
215
+ "types": ["number"]
216
+ }
217
+ ],
218
+ "parameters": [
219
+ {
220
+ "name": "body",
221
+ "doc": "body",
222
+ "types": ["b2Body"],
223
+ "is_optional": "False"
224
+ }
225
+ ],
226
+ "examples": "",
227
+ "replaces": "",
228
+ "error": "",
229
+ "tparams": [],
230
+ "members": [],
231
+ "notes": [],
232
+ "language": ""
233
+ },
234
+ {
235
+ "type": "FUNCTION",
236
+ "name": "b2d.body.get_world_center",
237
+ "brief": "Get the world position of the center of mass.",
238
+ "description": "Get the world position of the center of mass.",
239
+ "returnvalues": [
240
+ {
241
+ "name": "center",
242
+ "doc": "Get the world position of the center of mass.",
243
+ "types": ["vector3"]
244
+ }
245
+ ],
246
+ "parameters": [
247
+ {
248
+ "name": "body",
249
+ "doc": "body",
250
+ "types": ["b2Body"],
251
+ "is_optional": "False"
252
+ }
253
+ ],
254
+ "examples": "",
255
+ "replaces": "",
256
+ "error": "",
257
+ "tparams": [],
258
+ "members": [],
259
+ "notes": [],
260
+ "language": ""
261
+ },
262
+ {
263
+ "type": "FUNCTION",
264
+ "name": "b2d.body.get_local_center",
265
+ "brief": "Get the local position of the center of mass.",
266
+ "description": "Get the local position of the center of mass.",
267
+ "returnvalues": [
268
+ {
269
+ "name": "center",
270
+ "doc": "Get the local position of the center of mass.",
271
+ "types": ["vector3"]
272
+ }
273
+ ],
274
+ "parameters": [
275
+ {
276
+ "name": "body",
277
+ "doc": "body",
278
+ "types": ["b2Body"],
279
+ "is_optional": "False"
280
+ }
281
+ ],
282
+ "examples": "",
283
+ "replaces": "",
284
+ "error": "",
285
+ "tparams": [],
286
+ "members": [],
287
+ "notes": [],
288
+ "language": ""
289
+ },
290
+ {
291
+ "type": "FUNCTION",
292
+ "name": "b2d.body.set_linear_velocity",
293
+ "brief": "Set the linear velocity of the center of mass.",
294
+ "description": "Set the linear velocity of the center of mass.",
295
+ "returnvalues": [],
296
+ "parameters": [
297
+ {
298
+ "name": "body",
299
+ "doc": "body",
300
+ "types": ["b2Body"],
301
+ "is_optional": "False"
302
+ },
303
+ {
304
+ "name": "velocity",
305
+ "doc": "the new linear velocity of the center of mass.",
306
+ "types": ["vector3"],
307
+ "is_optional": "False"
308
+ }
309
+ ],
310
+ "examples": "",
311
+ "replaces": "",
312
+ "error": "",
313
+ "tparams": [],
314
+ "members": [],
315
+ "notes": [],
316
+ "language": ""
317
+ },
318
+ {
319
+ "type": "FUNCTION",
320
+ "name": "b2d.body.get_linear_velocity",
321
+ "brief": "Get the linear velocity of the center of mass.",
322
+ "description": "Get the linear velocity of the center of mass.",
323
+ "returnvalues": [
324
+ {
325
+ "name": "velocity",
326
+ "doc": "the linear velocity of the center of mass.",
327
+ "types": ["vector3"]
328
+ }
329
+ ],
330
+ "parameters": [
331
+ {
332
+ "name": "body",
333
+ "doc": "body",
334
+ "types": ["b2Body"],
335
+ "is_optional": "False"
336
+ }
337
+ ],
338
+ "examples": "",
339
+ "replaces": "",
340
+ "error": "",
341
+ "tparams": [],
342
+ "members": [],
343
+ "notes": [],
344
+ "language": ""
345
+ },
346
+ {
347
+ "type": "FUNCTION",
348
+ "name": "b2d.body.set_angular_velocity",
349
+ "brief": "Set the angular velocity.",
350
+ "description": "Set the angular velocity.",
351
+ "returnvalues": [],
352
+ "parameters": [
353
+ {
354
+ "name": "body",
355
+ "doc": "body",
356
+ "types": ["b2Body"],
357
+ "is_optional": "False"
358
+ },
359
+ {
360
+ "name": "omega",
361
+ "doc": "the new angular velocity in radians/second.",
362
+ "types": ["number"],
363
+ "is_optional": "False"
364
+ }
365
+ ],
366
+ "examples": "",
367
+ "replaces": "",
368
+ "error": "",
369
+ "tparams": [],
370
+ "members": [],
371
+ "notes": [],
372
+ "language": ""
373
+ },
374
+ {
375
+ "type": "FUNCTION",
376
+ "name": "b2d.body.get_angular_velocity",
377
+ "brief": "Get the angular velocity.",
378
+ "description": "Get the angular velocity.",
379
+ "returnvalues": [
380
+ {
381
+ "name": "velocity",
382
+ "doc": "the angular velocity in radians/second.",
383
+ "types": ["number"]
384
+ }
385
+ ],
386
+ "parameters": [
387
+ {
388
+ "name": "body",
389
+ "doc": "body",
390
+ "types": ["b2Body"],
391
+ "is_optional": "False"
392
+ }
393
+ ],
394
+ "examples": "",
395
+ "replaces": "",
396
+ "error": "",
397
+ "tparams": [],
398
+ "members": [],
399
+ "notes": [],
400
+ "language": ""
401
+ },
402
+ {
403
+ "type": "FUNCTION",
404
+ "name": "b2d.body.apply_force",
405
+ "brief": "Apply a force at a world point. If the force is no...",
406
+ "description": "Apply a force at a world point. If the force is not\napplied at the center of mass, it will generate a torque and\naffect the angular velocity. This wakes up the body.",
407
+ "returnvalues": [],
408
+ "parameters": [
409
+ {
410
+ "name": "body",
411
+ "doc": "body",
412
+ "types": ["b2Body"],
413
+ "is_optional": "False"
414
+ },
415
+ {
416
+ "name": "force",
417
+ "doc": "the world force vector, usually in Newtons (N).",
418
+ "types": ["vector3"],
419
+ "is_optional": "False"
420
+ },
421
+ {
422
+ "name": "point",
423
+ "doc": "the world position of the point of application.",
424
+ "types": ["vector3"],
425
+ "is_optional": "False"
426
+ }
427
+ ],
428
+ "examples": "",
429
+ "replaces": "",
430
+ "error": "",
431
+ "tparams": [],
432
+ "members": [],
433
+ "notes": [],
434
+ "language": ""
435
+ },
436
+ {
437
+ "type": "FUNCTION",
438
+ "name": "b2d.body.apply_force_to_center",
439
+ "brief": "Apply a force to the center of mass. This wakes up the body.",
440
+ "description": "Apply a force to the center of mass. This wakes up the body.",
441
+ "returnvalues": [],
442
+ "parameters": [
443
+ {
444
+ "name": "body",
445
+ "doc": "body",
446
+ "types": ["b2Body"],
447
+ "is_optional": "False"
448
+ },
449
+ {
450
+ "name": "force",
451
+ "doc": "the world force vector, usually in Newtons (N).",
452
+ "types": ["vector3"],
453
+ "is_optional": "False"
454
+ }
455
+ ],
456
+ "examples": "",
457
+ "replaces": "",
458
+ "error": "",
459
+ "tparams": [],
460
+ "members": [],
461
+ "notes": [],
462
+ "language": ""
463
+ },
464
+ {
465
+ "type": "FUNCTION",
466
+ "name": "b2d.body.apply_torque",
467
+ "brief": "Apply a torque. This affects the angular velocity\n...",
468
+ "description": "Apply a torque. This affects the angular velocity\nwithout affecting the linear velocity of the center of mass.\nThis wakes up the body.",
469
+ "returnvalues": [],
470
+ "parameters": [
471
+ {
472
+ "name": "body",
473
+ "doc": "body",
474
+ "types": ["b2Body"],
475
+ "is_optional": "False"
476
+ },
477
+ {
478
+ "name": "torque",
479
+ "doc": "torque about the z-axis (out of the screen), usually in N-m.",
480
+ "types": ["number"],
481
+ "is_optional": "False"
482
+ }
483
+ ],
484
+ "examples": "",
485
+ "replaces": "",
486
+ "error": "",
487
+ "tparams": [],
488
+ "members": [],
489
+ "notes": [],
490
+ "language": ""
491
+ },
492
+ {
493
+ "type": "FUNCTION",
494
+ "name": "b2d.body.apply_linear_impulse",
495
+ "brief": "Apply an impulse at a point. This immediately modi...",
496
+ "description": "Apply an impulse at a point. This immediately modifies the velocity.\nIt also modifies the angular velocity if the point of application\nis not at the center of mass. This wakes up the body.",
497
+ "returnvalues": [],
498
+ "parameters": [
499
+ {
500
+ "name": "body",
501
+ "doc": "body",
502
+ "types": ["b2Body"],
503
+ "is_optional": "False"
504
+ },
505
+ {
506
+ "name": "impulse",
507
+ "doc": "the world impulse vector, usually in N-seconds or kg-m/s.",
508
+ "types": ["vector3"],
509
+ "is_optional": "False"
510
+ },
511
+ {
512
+ "name": "point",
513
+ "doc": "the world position of the point of application.",
514
+ "types": ["vector3"],
515
+ "is_optional": "False"
516
+ }
517
+ ],
518
+ "examples": "",
519
+ "replaces": "",
520
+ "error": "",
521
+ "tparams": [],
522
+ "members": [],
523
+ "notes": [],
524
+ "language": ""
525
+ },
526
+ {
527
+ "type": "FUNCTION",
528
+ "name": "b2d.body.apply_angular_impulse",
529
+ "brief": "Apply an angular impulse.",
530
+ "description": "Apply an angular impulse.",
531
+ "returnvalues": [],
532
+ "parameters": [
533
+ {
534
+ "name": "body",
535
+ "doc": "body",
536
+ "types": ["b2Body"],
537
+ "is_optional": "False"
538
+ },
539
+ {
540
+ "name": "impulse",
541
+ "doc": "impulse the angular impulse in units of kg<em>m</em>m/s",
542
+ "types": ["number"],
543
+ "is_optional": "False"
544
+ }
545
+ ],
546
+ "examples": "",
547
+ "replaces": "",
548
+ "error": "",
549
+ "tparams": [],
550
+ "members": [],
551
+ "notes": [],
552
+ "language": ""
553
+ },
554
+ {
555
+ "type": "FUNCTION",
556
+ "name": "b2d.body.get_mass",
557
+ "brief": "Get the total mass of the body.",
558
+ "description": "Get the total mass of the body.",
559
+ "returnvalues": [
560
+ {
561
+ "name": "mass",
562
+ "doc": "the mass, usually in kilograms (kg).",
563
+ "types": ["number"]
564
+ }
565
+ ],
566
+ "parameters": [
567
+ {
568
+ "name": "body",
569
+ "doc": "body",
570
+ "types": ["b2Body"],
571
+ "is_optional": "False"
572
+ }
573
+ ],
574
+ "examples": "",
575
+ "replaces": "",
576
+ "error": "",
577
+ "tparams": [],
578
+ "members": [],
579
+ "notes": [],
580
+ "language": ""
581
+ },
582
+ {
583
+ "type": "FUNCTION",
584
+ "name": "b2d.body.get_inertia",
585
+ "brief": "Get the rotational inertia of the body about the local origin.",
586
+ "description": "Get the rotational inertia of the body about the local origin.",
587
+ "returnvalues": [
588
+ {
589
+ "name": "inertia",
590
+ "doc": "the rotational inertia, usually in kg-m^2.",
591
+ "types": ["number"]
592
+ }
593
+ ],
594
+ "parameters": [
595
+ {
596
+ "name": "body",
597
+ "doc": "body",
598
+ "types": ["b2Body"],
599
+ "is_optional": "False"
600
+ }
601
+ ],
602
+ "examples": "",
603
+ "replaces": "",
604
+ "error": "",
605
+ "tparams": [],
606
+ "members": [],
607
+ "notes": [],
608
+ "language": ""
609
+ },
610
+ {
611
+ "type": "FUNCTION",
612
+ "name": "b2d.body.get_mass_data",
613
+ "brief": "Get the mass data of the body.",
614
+ "description": "Get the mass data of the body.",
615
+ "returnvalues": [
616
+ {
617
+ "name": "data",
618
+ "doc": "table with <code>mass</code>, <code>center</code> in local coordinates, and <code>inertia</code>.",
619
+ "types": ["table"]
620
+ }
621
+ ],
622
+ "parameters": [
623
+ {
624
+ "name": "body",
625
+ "doc": "body",
626
+ "types": ["b2Body"],
627
+ "is_optional": "False"
628
+ }
629
+ ],
630
+ "examples": "",
631
+ "replaces": "",
632
+ "error": "",
633
+ "tparams": [],
634
+ "members": [],
635
+ "notes": [],
636
+ "language": ""
637
+ },
638
+ {
639
+ "type": "FUNCTION",
640
+ "name": "b2d.body.set_mass_data",
641
+ "brief": "Set the mass properties to override the mass prope...",
642
+ "description": "Set the mass properties to override the mass properties of the fixtures.",
643
+ "returnvalues": [],
644
+ "parameters": [
645
+ {
646
+ "name": "body",
647
+ "doc": "body",
648
+ "types": ["b2Body"],
649
+ "is_optional": "False"
650
+ },
651
+ {
652
+ "name": "data",
653
+ "doc": "table with <code>mass</code>, <code>center</code> in local coordinates, and <code>inertia</code>.",
654
+ "types": ["table"],
655
+ "is_optional": "False"
656
+ }
657
+ ],
658
+ "examples": "",
659
+ "replaces": "",
660
+ "error": "",
661
+ "tparams": [],
662
+ "members": [],
663
+ "notes": [
664
+ "This function has no effect if the body isn't dynamic.",
665
+ "This changes the center of mass position.",
666
+ "Creating or destroying fixtures can also alter the mass."
667
+ ],
668
+ "language": ""
669
+ },
670
+ {
671
+ "type": "FUNCTION",
672
+ "name": "b2d.body.reset_mass_data",
673
+ "brief": "This resets the mass properties to the sum of the ...",
674
+ "description": "This resets the mass properties to the sum of the mass properties of the fixtures.\nThis normally does not need to be called unless you called SetMassData to override",
675
+ "returnvalues": [],
676
+ "parameters": [
677
+ {
678
+ "name": "body",
679
+ "doc": "body",
680
+ "types": ["b2Body"],
681
+ "is_optional": "False"
682
+ }
683
+ ],
684
+ "examples": "",
685
+ "replaces": "",
686
+ "error": "",
687
+ "tparams": [],
688
+ "members": [],
689
+ "notes": [],
690
+ "language": ""
691
+ },
692
+ {
693
+ "type": "FUNCTION",
694
+ "name": "b2d.body.get_fixtures",
695
+ "brief": "Get the fixtures attached to this body.",
696
+ "description": "Get the fixtures attached to this body.",
697
+ "returnvalues": [
698
+ {
699
+ "name": "fixtures",
700
+ "doc": "array of fixture info tables with <code>index</code>, <code>type</code>, <code>sensor</code>, <code>density</code>, <code>friction</code>, <code>restitution</code>, and <code>child_count</code>",
701
+ "types": ["table"]
702
+ }
703
+ ],
704
+ "parameters": [
705
+ {
706
+ "name": "body",
707
+ "doc": "body",
708
+ "types": ["b2Body"],
709
+ "is_optional": "False"
710
+ }
711
+ ],
712
+ "examples": "",
713
+ "replaces": "",
714
+ "error": "",
715
+ "tparams": [],
716
+ "members": [],
717
+ "notes": [],
718
+ "language": ""
719
+ },
720
+ {
721
+ "type": "FUNCTION",
722
+ "name": "b2d.body.destroy_fixture",
723
+ "brief": "Destroy a fixture from a body.",
724
+ "description": "Destroy a fixture from a body.",
725
+ "returnvalues": [],
726
+ "parameters": [
727
+ {
728
+ "name": "body",
729
+ "doc": "body",
730
+ "types": ["b2Body"],
731
+ "is_optional": "False"
732
+ },
733
+ {
734
+ "name": "fixture_index",
735
+ "doc": "1-based fixture index from <code>b2d.body.get_fixtures</code>",
736
+ "types": ["number"],
737
+ "is_optional": "False"
738
+ }
739
+ ],
740
+ "examples": "",
741
+ "replaces": "",
742
+ "error": "",
743
+ "tparams": [],
744
+ "members": [],
745
+ "notes": [],
746
+ "language": ""
747
+ },
748
+ {
749
+ "type": "FUNCTION",
750
+ "name": "b2d.body.get_world_point",
751
+ "brief": "Get the world coordinates of a point given the local coordinates.",
752
+ "description": "Get the world coordinates of a point given the local coordinates.",
753
+ "returnvalues": [
754
+ {
755
+ "name": "vector",
756
+ "doc": "the same point expressed in world coordinates.",
757
+ "types": ["vector3"]
758
+ }
759
+ ],
760
+ "parameters": [
761
+ {
762
+ "name": "body",
763
+ "doc": "body",
764
+ "types": ["b2Body"],
765
+ "is_optional": "False"
766
+ },
767
+ {
768
+ "name": "local_vector",
769
+ "doc": "localPoint a point on the body measured relative the the body's origin.",
770
+ "types": ["vector3"],
771
+ "is_optional": "False"
772
+ }
773
+ ],
774
+ "examples": "",
775
+ "replaces": "",
776
+ "error": "",
777
+ "tparams": [],
778
+ "members": [],
779
+ "notes": [],
780
+ "language": ""
781
+ },
782
+ {
783
+ "type": "FUNCTION",
784
+ "name": "b2d.body.get_world_vector",
785
+ "brief": "Get the world coordinates of a vector given the local coordinates.",
786
+ "description": "Get the world coordinates of a vector given the local coordinates.",
787
+ "returnvalues": [
788
+ {
789
+ "name": "vector",
790
+ "doc": "the same vector expressed in world coordinates.",
791
+ "types": ["vector3"]
792
+ }
793
+ ],
794
+ "parameters": [
795
+ {
796
+ "name": "body",
797
+ "doc": "body",
798
+ "types": ["b2Body"],
799
+ "is_optional": "False"
800
+ },
801
+ {
802
+ "name": "local_vector",
803
+ "doc": "a vector fixed in the body.",
804
+ "types": ["vector3"],
805
+ "is_optional": "False"
806
+ }
807
+ ],
808
+ "examples": "",
809
+ "replaces": "",
810
+ "error": "",
811
+ "tparams": [],
812
+ "members": [],
813
+ "notes": [],
814
+ "language": ""
815
+ },
816
+ {
817
+ "type": "FUNCTION",
818
+ "name": "b2d.body.get_local_point",
819
+ "brief": "Gets a local point relative to the body's origin given a world point.",
820
+ "description": "Gets a local point relative to the body's origin given a world point.",
821
+ "returnvalues": [
822
+ {
823
+ "name": "vector",
824
+ "doc": "the corresponding local point relative to the body's origin.",
825
+ "types": ["vector3"]
826
+ }
827
+ ],
828
+ "parameters": [
829
+ {
830
+ "name": "body",
831
+ "doc": "body",
832
+ "types": ["b2Body"],
833
+ "is_optional": "False"
834
+ },
835
+ {
836
+ "name": "world_point",
837
+ "doc": "a point in world coordinates.",
838
+ "types": ["vector3"],
839
+ "is_optional": "False"
840
+ }
841
+ ],
842
+ "examples": "",
843
+ "replaces": "",
844
+ "error": "",
845
+ "tparams": [],
846
+ "members": [],
847
+ "notes": [],
848
+ "language": ""
849
+ },
850
+ {
851
+ "type": "FUNCTION",
852
+ "name": "b2d.body.get_local_vector",
853
+ "brief": "Gets a local vector given a world vector.",
854
+ "description": "Gets a local vector given a world vector.",
855
+ "returnvalues": [
856
+ {
857
+ "name": "vector",
858
+ "doc": "the corresponding local vector.",
859
+ "types": ["vector3"]
860
+ }
861
+ ],
862
+ "parameters": [
863
+ {
864
+ "name": "body",
865
+ "doc": "body",
866
+ "types": ["b2Body"],
867
+ "is_optional": "False"
868
+ },
869
+ {
870
+ "name": "world_vector",
871
+ "doc": "a vector in world coordinates.",
872
+ "types": ["vector3"],
873
+ "is_optional": "False"
874
+ }
875
+ ],
876
+ "examples": "",
877
+ "replaces": "",
878
+ "error": "",
879
+ "tparams": [],
880
+ "members": [],
881
+ "notes": [],
882
+ "language": ""
883
+ },
884
+ {
885
+ "type": "FUNCTION",
886
+ "name": "b2d.body.get_linear_velocity_from_world_point",
887
+ "brief": "Get the world linear velocity of a world point attached to this body.",
888
+ "description": "Get the world linear velocity of a world point attached to this body.",
889
+ "returnvalues": [
890
+ {
891
+ "name": "velocity",
892
+ "doc": "the world velocity of a point.",
893
+ "types": ["vector3"]
894
+ }
895
+ ],
896
+ "parameters": [
897
+ {
898
+ "name": "body",
899
+ "doc": "body",
900
+ "types": ["b2Body"],
901
+ "is_optional": "False"
902
+ },
903
+ {
904
+ "name": "world_point",
905
+ "doc": "a point in world coordinates.",
906
+ "types": ["vector3"],
907
+ "is_optional": "False"
908
+ }
909
+ ],
910
+ "examples": "",
911
+ "replaces": "",
912
+ "error": "",
913
+ "tparams": [],
914
+ "members": [],
915
+ "notes": [],
916
+ "language": ""
917
+ },
918
+ {
919
+ "type": "FUNCTION",
920
+ "name": "b2d.body.get_linear_velocity_from_local_point",
921
+ "brief": "Get the world velocity of a local point.",
922
+ "description": "Get the world velocity of a local point.",
923
+ "returnvalues": [
924
+ {
925
+ "name": "velocity",
926
+ "doc": "the world velocity of a point.",
927
+ "types": ["vector3"]
928
+ }
929
+ ],
930
+ "parameters": [
931
+ {
932
+ "name": "body",
933
+ "doc": "body",
934
+ "types": ["b2Body"],
935
+ "is_optional": "False"
936
+ },
937
+ {
938
+ "name": "local_point",
939
+ "doc": "a point in local coordinates.",
940
+ "types": ["vector3"],
941
+ "is_optional": "False"
942
+ }
943
+ ],
944
+ "examples": "",
945
+ "replaces": "",
946
+ "error": "",
947
+ "tparams": [],
948
+ "members": [],
949
+ "notes": [],
950
+ "language": ""
951
+ },
952
+ {
953
+ "type": "FUNCTION",
954
+ "name": "b2d.body.set_linear_damping",
955
+ "brief": "Set the linear damping of the body.",
956
+ "description": "Set the linear damping of the body.",
957
+ "returnvalues": [],
958
+ "parameters": [
959
+ {
960
+ "name": "body",
961
+ "doc": "body",
962
+ "types": ["b2Body"],
963
+ "is_optional": "False"
964
+ },
965
+ {
966
+ "name": "damping",
967
+ "doc": "the damping",
968
+ "types": ["number"],
969
+ "is_optional": "False"
970
+ }
971
+ ],
972
+ "examples": "",
973
+ "replaces": "",
974
+ "error": "",
975
+ "tparams": [],
976
+ "members": [],
977
+ "notes": [],
978
+ "language": ""
979
+ },
980
+ {
981
+ "type": "FUNCTION",
982
+ "name": "b2d.body.get_linear_damping",
983
+ "brief": "Get the linear damping of the body.",
984
+ "description": "Get the linear damping of the body.",
985
+ "returnvalues": [
986
+ {
987
+ "name": "damping",
988
+ "doc": "the damping",
989
+ "types": ["number"]
990
+ }
991
+ ],
992
+ "parameters": [
993
+ {
994
+ "name": "body",
995
+ "doc": "body",
996
+ "types": ["b2Body"],
997
+ "is_optional": "False"
998
+ }
999
+ ],
1000
+ "examples": "",
1001
+ "replaces": "",
1002
+ "error": "",
1003
+ "tparams": [],
1004
+ "members": [],
1005
+ "notes": [],
1006
+ "language": ""
1007
+ },
1008
+ {
1009
+ "type": "FUNCTION",
1010
+ "name": "b2d.body.set_angular_damping",
1011
+ "brief": "Set the angular damping of the body.",
1012
+ "description": "Set the angular damping of the body.",
1013
+ "returnvalues": [],
1014
+ "parameters": [
1015
+ {
1016
+ "name": "body",
1017
+ "doc": "body",
1018
+ "types": ["b2Body"],
1019
+ "is_optional": "False"
1020
+ },
1021
+ {
1022
+ "name": "damping",
1023
+ "doc": "the damping",
1024
+ "types": ["number"],
1025
+ "is_optional": "False"
1026
+ }
1027
+ ],
1028
+ "examples": "",
1029
+ "replaces": "",
1030
+ "error": "",
1031
+ "tparams": [],
1032
+ "members": [],
1033
+ "notes": [],
1034
+ "language": ""
1035
+ },
1036
+ {
1037
+ "type": "FUNCTION",
1038
+ "name": "b2d.body.get_angular_damping",
1039
+ "brief": "Get the angular damping of the body.",
1040
+ "description": "Get the angular damping of the body.",
1041
+ "returnvalues": [
1042
+ {
1043
+ "name": "damping",
1044
+ "doc": "the damping",
1045
+ "types": ["number"]
1046
+ }
1047
+ ],
1048
+ "parameters": [
1049
+ {
1050
+ "name": "body",
1051
+ "doc": "body",
1052
+ "types": ["b2Body"],
1053
+ "is_optional": "False"
1054
+ }
1055
+ ],
1056
+ "examples": "",
1057
+ "replaces": "",
1058
+ "error": "",
1059
+ "tparams": [],
1060
+ "members": [],
1061
+ "notes": [],
1062
+ "language": ""
1063
+ },
1064
+ {
1065
+ "type": "FUNCTION",
1066
+ "name": "b2d.body.set_gravity_scale",
1067
+ "brief": "Set the gravity scale of the body.",
1068
+ "description": "Set the gravity scale of the body.",
1069
+ "returnvalues": [],
1070
+ "parameters": [
1071
+ {
1072
+ "name": "body",
1073
+ "doc": "body",
1074
+ "types": ["b2Body"],
1075
+ "is_optional": "False"
1076
+ },
1077
+ {
1078
+ "name": "scale",
1079
+ "doc": "the scale",
1080
+ "types": ["number"],
1081
+ "is_optional": "False"
1082
+ }
1083
+ ],
1084
+ "examples": "",
1085
+ "replaces": "",
1086
+ "error": "",
1087
+ "tparams": [],
1088
+ "members": [],
1089
+ "notes": [],
1090
+ "language": ""
1091
+ },
1092
+ {
1093
+ "type": "FUNCTION",
1094
+ "name": "b2d.body.get_gravity_scale",
1095
+ "brief": "Get the gravity scale of the body.",
1096
+ "description": "Get the gravity scale of the body.",
1097
+ "returnvalues": [
1098
+ {
1099
+ "name": "scale",
1100
+ "doc": "the scale",
1101
+ "types": ["number"]
1102
+ }
1103
+ ],
1104
+ "parameters": [
1105
+ {
1106
+ "name": "body",
1107
+ "doc": "body",
1108
+ "types": ["b2Body"],
1109
+ "is_optional": "False"
1110
+ }
1111
+ ],
1112
+ "examples": "",
1113
+ "replaces": "",
1114
+ "error": "",
1115
+ "tparams": [],
1116
+ "members": [],
1117
+ "notes": [],
1118
+ "language": ""
1119
+ },
1120
+ {
1121
+ "type": "FUNCTION",
1122
+ "name": "b2d.body.set_type",
1123
+ "brief": "Set the type of this body. This may alter the mass and velocity.",
1124
+ "description": "Set the type of this body. This may alter the mass and velocity.",
1125
+ "returnvalues": [],
1126
+ "parameters": [
1127
+ {
1128
+ "name": "body",
1129
+ "doc": "body",
1130
+ "types": ["b2Body"],
1131
+ "is_optional": "False"
1132
+ },
1133
+ {
1134
+ "name": "type",
1135
+ "doc": "the body type",
1136
+ "types": ["b2BodyType"],
1137
+ "is_optional": "False"
1138
+ }
1139
+ ],
1140
+ "examples": "",
1141
+ "replaces": "",
1142
+ "error": "",
1143
+ "tparams": [],
1144
+ "members": [],
1145
+ "notes": [],
1146
+ "language": ""
1147
+ },
1148
+ {
1149
+ "type": "FUNCTION",
1150
+ "name": "b2d.body.get_type",
1151
+ "brief": "Get the type of this body.",
1152
+ "description": "Get the type of this body.",
1153
+ "returnvalues": [
1154
+ {
1155
+ "name": "type",
1156
+ "doc": "the body type",
1157
+ "types": ["b2BodyType"]
1158
+ }
1159
+ ],
1160
+ "parameters": [
1161
+ {
1162
+ "name": "body",
1163
+ "doc": "body",
1164
+ "types": ["b2Body"],
1165
+ "is_optional": "False"
1166
+ }
1167
+ ],
1168
+ "examples": "",
1169
+ "replaces": "",
1170
+ "error": "",
1171
+ "tparams": [],
1172
+ "members": [],
1173
+ "notes": [],
1174
+ "language": ""
1175
+ },
1176
+ {
1177
+ "type": "FUNCTION",
1178
+ "name": "b2d.body.set_bullet",
1179
+ "brief": "Should this body be treated like a bullet for continuous collision detection?",
1180
+ "description": "Should this body be treated like a bullet for continuous collision detection?",
1181
+ "returnvalues": [],
1182
+ "parameters": [
1183
+ {
1184
+ "name": "body",
1185
+ "doc": "body",
1186
+ "types": ["b2Body"],
1187
+ "is_optional": "False"
1188
+ },
1189
+ {
1190
+ "name": "enable",
1191
+ "doc": "if true, the body will be in bullet mode",
1192
+ "types": ["boolean"],
1193
+ "is_optional": "False"
1194
+ }
1195
+ ],
1196
+ "examples": "",
1197
+ "replaces": "",
1198
+ "error": "",
1199
+ "tparams": [],
1200
+ "members": [],
1201
+ "notes": [],
1202
+ "language": ""
1203
+ },
1204
+ {
1205
+ "type": "FUNCTION",
1206
+ "name": "b2d.body.is_bullet",
1207
+ "brief": "Is this body in bullet mode",
1208
+ "description": "Is this body in bullet mode",
1209
+ "returnvalues": [
1210
+ {
1211
+ "name": "enabled",
1212
+ "doc": "true if the body is in bullet mode",
1213
+ "types": ["boolean"]
1214
+ }
1215
+ ],
1216
+ "parameters": [
1217
+ {
1218
+ "name": "body",
1219
+ "doc": "body",
1220
+ "types": ["b2Body"],
1221
+ "is_optional": "False"
1222
+ }
1223
+ ],
1224
+ "examples": "",
1225
+ "replaces": "",
1226
+ "error": "",
1227
+ "tparams": [],
1228
+ "members": [],
1229
+ "notes": [],
1230
+ "language": ""
1231
+ },
1232
+ {
1233
+ "type": "FUNCTION",
1234
+ "name": "b2d.body.set_sleeping_allowed",
1235
+ "brief": "You can disable sleeping on this body. If you disable sleeping, the body will be woken.",
1236
+ "description": "You can disable sleeping on this body. If you disable sleeping, the body will be woken.",
1237
+ "returnvalues": [],
1238
+ "parameters": [
1239
+ {
1240
+ "name": "body",
1241
+ "doc": "body",
1242
+ "types": ["b2Body"],
1243
+ "is_optional": "False"
1244
+ },
1245
+ {
1246
+ "name": "enable",
1247
+ "doc": "if false, the body will never sleep, and consume more CPU",
1248
+ "types": ["boolean"],
1249
+ "is_optional": "False"
1250
+ }
1251
+ ],
1252
+ "examples": "",
1253
+ "replaces": "",
1254
+ "error": "",
1255
+ "tparams": [],
1256
+ "members": [],
1257
+ "notes": [],
1258
+ "language": ""
1259
+ },
1260
+ {
1261
+ "type": "FUNCTION",
1262
+ "name": "b2d.body.is_sleeping_allowed",
1263
+ "brief": "Is this body allowed to sleep",
1264
+ "description": "Is this body allowed to sleep",
1265
+ "returnvalues": [
1266
+ {
1267
+ "name": "enabled",
1268
+ "doc": "true if the body is allowed to sleep",
1269
+ "types": ["boolean"]
1270
+ }
1271
+ ],
1272
+ "parameters": [
1273
+ {
1274
+ "name": "body",
1275
+ "doc": "body",
1276
+ "types": ["b2Body"],
1277
+ "is_optional": "False"
1278
+ }
1279
+ ],
1280
+ "examples": "",
1281
+ "replaces": "",
1282
+ "error": "",
1283
+ "tparams": [],
1284
+ "members": [],
1285
+ "notes": [],
1286
+ "language": ""
1287
+ },
1288
+ {
1289
+ "type": "FUNCTION",
1290
+ "name": "b2d.body.set_awake",
1291
+ "brief": "Set the sleep state of the body. A sleeping body has very low CPU cost.",
1292
+ "description": "Set the sleep state of the body. A sleeping body has very low CPU cost.",
1293
+ "returnvalues": [],
1294
+ "parameters": [
1295
+ {
1296
+ "name": "body",
1297
+ "doc": "body",
1298
+ "types": ["b2Body"],
1299
+ "is_optional": "False"
1300
+ },
1301
+ {
1302
+ "name": "enable",
1303
+ "doc": "flag set to false to put body to sleep, true to wake it.",
1304
+ "types": ["boolean"],
1305
+ "is_optional": "False"
1306
+ }
1307
+ ],
1308
+ "examples": "",
1309
+ "replaces": "",
1310
+ "error": "",
1311
+ "tparams": [],
1312
+ "members": [],
1313
+ "notes": [],
1314
+ "language": ""
1315
+ },
1316
+ {
1317
+ "type": "FUNCTION",
1318
+ "name": "b2d.body.is_awake",
1319
+ "brief": "Get the sleeping state of this body.",
1320
+ "description": "Get the sleeping state of this body.",
1321
+ "returnvalues": [
1322
+ {
1323
+ "name": "enabled",
1324
+ "doc": "true if the body is awake, false if it's sleeping.",
1325
+ "types": ["boolean"]
1326
+ }
1327
+ ],
1328
+ "parameters": [
1329
+ {
1330
+ "name": "body",
1331
+ "doc": "body",
1332
+ "types": ["b2Body"],
1333
+ "is_optional": "False"
1334
+ }
1335
+ ],
1336
+ "examples": "",
1337
+ "replaces": "",
1338
+ "error": "",
1339
+ "tparams": [],
1340
+ "members": [],
1341
+ "notes": [],
1342
+ "language": ""
1343
+ },
1344
+ {
1345
+ "type": "FUNCTION",
1346
+ "name": "b2d.body.set_active",
1347
+ "brief": "Set the active state of the body",
1348
+ "description": "Set the active state of the body. An inactive body is not\nsimulated and cannot be collided with or woken up.\nIf you pass a flag of true, all fixtures will be added to the\nbroad-phase.\nIf you pass a flag of false, all fixtures will be removed from\nthe broad-phase and all contacts will be destroyed.\nFixtures and joints are otherwise unaffected. You may continue\nto create/destroy fixtures and joints on inactive bodies.\nFixtures on an inactive body are implicitly inactive and will\nnot participate in collisions, ray-casts, or queries.\nJoints connected to an inactive body are implicitly inactive.\nAn inactive body is still owned by a b2World object and remains\nin the body list.",
1349
+ "returnvalues": [],
1350
+ "parameters": [
1351
+ {
1352
+ "name": "body",
1353
+ "doc": "body",
1354
+ "types": ["b2Body"],
1355
+ "is_optional": "False"
1356
+ },
1357
+ {
1358
+ "name": "enable",
1359
+ "doc": "true if the body should be active",
1360
+ "types": ["boolean"],
1361
+ "is_optional": "False"
1362
+ }
1363
+ ],
1364
+ "examples": "",
1365
+ "replaces": "",
1366
+ "error": "",
1367
+ "tparams": [],
1368
+ "members": [],
1369
+ "notes": [],
1370
+ "language": ""
1371
+ },
1372
+ {
1373
+ "type": "FUNCTION",
1374
+ "name": "b2d.body.is_active",
1375
+ "brief": "Get the active state of the body.",
1376
+ "description": "Get the active state of the body.",
1377
+ "returnvalues": [
1378
+ {
1379
+ "name": "enabled",
1380
+ "doc": "is the body active",
1381
+ "types": ["boolean"]
1382
+ }
1383
+ ],
1384
+ "parameters": [
1385
+ {
1386
+ "name": "body",
1387
+ "doc": "body",
1388
+ "types": ["b2Body"],
1389
+ "is_optional": "False"
1390
+ }
1391
+ ],
1392
+ "examples": "",
1393
+ "replaces": "",
1394
+ "error": "",
1395
+ "tparams": [],
1396
+ "members": [],
1397
+ "notes": [],
1398
+ "language": ""
1399
+ },
1400
+ {
1401
+ "type": "FUNCTION",
1402
+ "name": "b2d.body.set_fixed_rotation",
1403
+ "brief": "Set this body to have fixed rotation. This causes the mass to be reset.",
1404
+ "description": "Set this body to have fixed rotation. This causes the mass to be reset.",
1405
+ "returnvalues": [],
1406
+ "parameters": [
1407
+ {
1408
+ "name": "body",
1409
+ "doc": "body",
1410
+ "types": ["b2Body"],
1411
+ "is_optional": "False"
1412
+ },
1413
+ {
1414
+ "name": "enable",
1415
+ "doc": "true if the rotation should be fixed",
1416
+ "types": ["boolean"],
1417
+ "is_optional": "False"
1418
+ }
1419
+ ],
1420
+ "examples": "",
1421
+ "replaces": "",
1422
+ "error": "",
1423
+ "tparams": [],
1424
+ "members": [],
1425
+ "notes": [],
1426
+ "language": ""
1427
+ },
1428
+ {
1429
+ "type": "FUNCTION",
1430
+ "name": "b2d.body.is_fixed_rotation",
1431
+ "brief": "Does this body have fixed rotation?",
1432
+ "description": "Does this body have fixed rotation?",
1433
+ "returnvalues": [
1434
+ {
1435
+ "name": "enabled",
1436
+ "doc": "is the rotation fixed",
1437
+ "types": ["boolean"]
1438
+ }
1439
+ ],
1440
+ "parameters": [
1441
+ {
1442
+ "name": "body",
1443
+ "doc": "body",
1444
+ "types": ["b2Body"],
1445
+ "is_optional": "False"
1446
+ }
1447
+ ],
1448
+ "examples": "",
1449
+ "replaces": "",
1450
+ "error": "",
1451
+ "tparams": [],
1452
+ "members": [],
1453
+ "notes": [],
1454
+ "language": ""
1455
+ },
1456
+ {
1457
+ "type": "FUNCTION",
1458
+ "name": "b2d.body.get_joints",
1459
+ "brief": "Get the joints attached to this body.",
1460
+ "description": "Get the joints attached to this body.",
1461
+ "returnvalues": [
1462
+ {
1463
+ "name": "joints",
1464
+ "doc": "array of <code>b2Joint</code> handles created by <code>b2d.joint</code>",
1465
+ "types": ["table"]
1466
+ }
1467
+ ],
1468
+ "parameters": [
1469
+ {
1470
+ "name": "body",
1471
+ "doc": "body",
1472
+ "types": ["b2Body"],
1473
+ "is_optional": "False"
1474
+ }
1475
+ ],
1476
+ "examples": "",
1477
+ "replaces": "",
1478
+ "error": "",
1479
+ "tparams": [],
1480
+ "members": [],
1481
+ "notes": [],
1482
+ "language": ""
1483
+ },
1484
+ {
1485
+ "type": "FUNCTION",
1486
+ "name": "b2d.body.get_contact_list",
1487
+ "brief": "Get the list of all contacts attached to this body.",
1488
+ "description": "Get the list of all contacts attached to this body.",
1489
+ "returnvalues": [
1490
+ {
1491
+ "name": "edge",
1492
+ "doc": "the first edge",
1493
+ "types": ["b2ContactEdge"]
1494
+ }
1495
+ ],
1496
+ "parameters": [
1497
+ {
1498
+ "name": "body",
1499
+ "doc": "body",
1500
+ "types": ["b2Body"],
1501
+ "is_optional": "False"
1502
+ }
1503
+ ],
1504
+ "examples": "",
1505
+ "replaces": "",
1506
+ "error": "",
1507
+ "tparams": [],
1508
+ "members": [],
1509
+ "notes": [],
1510
+ "language": ""
1511
+ },
1512
+ {
1513
+ "type": "FUNCTION",
1514
+ "name": "b2d.body.get_next",
1515
+ "brief": "Get the next body in the world's body list.",
1516
+ "description": "Get the next body in the world's body list.",
1517
+ "returnvalues": [
1518
+ {
1519
+ "name": "body",
1520
+ "doc": "the next body",
1521
+ "types": ["b2Body"]
1522
+ }
1523
+ ],
1524
+ "parameters": [
1525
+ {
1526
+ "name": "body",
1527
+ "doc": "body",
1528
+ "types": ["b2Body"],
1529
+ "is_optional": "False"
1530
+ }
1531
+ ],
1532
+ "examples": "",
1533
+ "replaces": "",
1534
+ "error": "",
1535
+ "tparams": [],
1536
+ "members": [],
1537
+ "notes": [],
1538
+ "language": ""
1539
+ },
1540
+ {
1541
+ "type": "FUNCTION",
1542
+ "name": "b2d.body.get_world",
1543
+ "brief": "Get the parent world of this body.",
1544
+ "description": "Get the parent world of this body.",
1545
+ "returnvalues": [
1546
+ {
1547
+ "name": "world",
1548
+ "doc": "",
1549
+ "types": ["b2World"]
1550
+ }
1551
+ ],
1552
+ "parameters": [
1553
+ {
1554
+ "name": "body",
1555
+ "doc": "body",
1556
+ "types": ["b2Body"],
1557
+ "is_optional": "False"
1558
+ }
1559
+ ],
1560
+ "examples": "",
1561
+ "replaces": "",
1562
+ "error": "",
1563
+ "tparams": [],
1564
+ "members": [],
1565
+ "notes": [],
1566
+ "language": ""
1567
+ },
1568
+ {
1569
+ "type": "FUNCTION",
1570
+ "name": "b2d.body.dump",
1571
+ "brief": "Print the body representation to the log output",
1572
+ "description": "Print the body representation to the log output",
1573
+ "returnvalues": [],
1574
+ "parameters": [
1575
+ {
1576
+ "name": "body",
1577
+ "doc": "body",
1578
+ "types": ["b2Body"],
1579
+ "is_optional": "False"
1580
+ }
1581
+ ],
1582
+ "examples": "",
1583
+ "replaces": "",
1584
+ "error": "",
1585
+ "tparams": [],
1586
+ "members": [],
1587
+ "notes": [],
1588
+ "language": ""
1589
+ },
1590
+ {
1591
+ "type": "FUNCTION",
1592
+ "name": "b2d.body.get_force",
1593
+ "brief": "Get the total force currently applied on this object",
1594
+ "description": "Get the total force currently applied on this object",
1595
+ "returnvalues": [
1596
+ {
1597
+ "name": "force",
1598
+ "doc": "",
1599
+ "types": ["vector3"]
1600
+ }
1601
+ ],
1602
+ "parameters": [
1603
+ {
1604
+ "name": "body",
1605
+ "doc": "body",
1606
+ "types": ["b2Body"],
1607
+ "is_optional": "False"
1608
+ }
1609
+ ],
1610
+ "examples": "",
1611
+ "replaces": "",
1612
+ "error": "",
1613
+ "tparams": [],
1614
+ "members": [],
1615
+ "notes": ["Defold Specific"],
1616
+ "language": ""
1617
+ },
1618
+ {
1619
+ "type": "TYPEDEF",
1620
+ "name": "b2World",
1621
+ "brief": "Box2D world",
1622
+ "description": "Box2D world",
1623
+ "returnvalues": [],
1624
+ "parameters": [
1625
+ {
1626
+ "name": "value",
1627
+ "doc": "",
1628
+ "types": ["userdata"],
1629
+ "is_optional": "False"
1630
+ }
1631
+ ],
1632
+ "examples": "",
1633
+ "replaces": "",
1634
+ "error": "",
1635
+ "tparams": [],
1636
+ "members": [],
1637
+ "notes": [],
1638
+ "language": ""
1639
+ },
1640
+ {
1641
+ "type": "TYPEDEF",
1642
+ "name": "b2Body",
1643
+ "brief": "Box2D body",
1644
+ "description": "Box2D body",
1645
+ "returnvalues": [],
1646
+ "parameters": [
1647
+ {
1648
+ "name": "value",
1649
+ "doc": "",
1650
+ "types": ["userdata"],
1651
+ "is_optional": "False"
1652
+ }
1653
+ ],
1654
+ "examples": "",
1655
+ "replaces": "",
1656
+ "error": "",
1657
+ "tparams": [],
1658
+ "members": [],
1659
+ "notes": [],
1660
+ "language": ""
1661
+ },
1662
+ {
1663
+ "type": "FUNCTION",
1664
+ "name": "b2d.body.create_shape",
1665
+ "brief": "Creates a shape and attaches it to this body",
1666
+ "description": "Creates a shape and attaches it to this body.\nIf the density is non-zero, this function automatically updates the mass of the body.\nContacts are not created until the next time step.\nThe definition may include <code>density</code>, <code>friction</code>, <code>restitution</code>, <code>material</code>,\n<code>sensor</code> or <code>is_sensor</code>, <code>filter</code>, and the shape table itself. The shape table\ncan be in <code>definition.shape</code> or directly in <code>definition</code>.",
1667
+ "returnvalues": [],
1668
+ "parameters": [
1669
+ {
1670
+ "name": "body",
1671
+ "doc": "body",
1672
+ "types": ["b2Body"],
1673
+ "is_optional": "False"
1674
+ },
1675
+ {
1676
+ "name": "definition",
1677
+ "doc": "the shape definition.",
1678
+ "types": ["table"],
1679
+ "is_optional": "False"
1680
+ }
1681
+ ],
1682
+ "examples": "",
1683
+ "replaces": "",
1684
+ "error": "",
1685
+ "tparams": [],
1686
+ "members": [],
1687
+ "notes": [],
1688
+ "language": ""
1689
+ },
1690
+ {
1691
+ "type": "FUNCTION",
1692
+ "name": "b2d.body.create_chain",
1693
+ "brief": "Create a chain and attach its segment shapes to this body.",
1694
+ "description": "Chains are one-sided connected segments with optional ghost vertices at\nthe ends of open chains. Ghost vertices are creation-time chain data only and\ncannot be added to arbitrary shapes, bodies, or joints after creation.\n<dl>\n<dt><code>definition.vertices</code></dt>\n<dd><span class=\"type\">table</span> array of local <code>vector3</code> vertices. Open chains require at least 2 vertices. Loop chains require at least 4 vertices.</dd>\n<dt><code>definition.loop</code></dt>\n<dd><span class=\"type\">boolean</span> true to create a closed loop chain.</dd>\n<dt><code>definition.prev_vertex</code></dt>\n<dd><span class=\"type\">vector3</span> optional ghost vertex before the first vertex for open chains.</dd>\n<dt><code>definition.next_vertex</code></dt>\n<dd><span class=\"type\">vector3</span> optional ghost vertex after the last vertex for open chains.</dd>\n<dt><code>definition.friction</code></dt>\n<dd><span class=\"type\">number</span> optional friction.</dd>\n<dt><code>definition.restitution</code></dt>\n<dd><span class=\"type\">number</span> optional restitution.</dd>\n<dt><code>definition.material</code></dt>\n<dd><span class=\"type\">number</span> optional material id.</dd>\n<dt><code>definition.filter</code></dt>\n<dd><span class=\"type\">table</span> optional filter with <code>category_bits</code>, <code>mask_bits</code>, and <code>group_index</code>.</dd>\n<dt><code>definition.enable_sensor_events</code></dt>\n<dd><span class=\"type\">boolean</span> true to enable sensor events for chain segments.</dd>\n</dl>",
1695
+ "returnvalues": [
1696
+ {
1697
+ "name": "chain",
1698
+ "doc": "created chain handle",
1699
+ "types": ["b2Chain"]
1700
+ },
1701
+ {
1702
+ "name": "segments",
1703
+ "doc": "array of shape info tables for the chain segments",
1704
+ "types": ["table"]
1705
+ }
1706
+ ],
1707
+ "parameters": [
1708
+ {
1709
+ "name": "body",
1710
+ "doc": "body",
1711
+ "types": ["b2Body"],
1712
+ "is_optional": "False"
1713
+ },
1714
+ {
1715
+ "name": "definition",
1716
+ "doc": "the chain definition",
1717
+ "types": ["table"],
1718
+ "is_optional": "False"
1719
+ }
1720
+ ],
1721
+ "examples": "<div class=\"codehilite\"><pre><span></span><code><span class=\"kd\">local</span> <span class=\"n\">chain</span><span class=\"p\">,</span> <span class=\"n\">segments</span> <span class=\"o\">=</span> <span class=\"n\">b2d</span><span class=\"p\">.</span><span class=\"n\">body</span><span class=\"p\">.</span><span class=\"n\">create_chain</span><span class=\"p\">(</span><span class=\"n\">body</span><span class=\"p\">,</span> <span class=\"p\">{</span>\n <span class=\"n\">vertices</span> <span class=\"o\">=</span> <span class=\"p\">{</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"o\">-</span><span class=\"mi\">64</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">16</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mi\">64</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"p\">},</span>\n <span class=\"n\">prev_vertex</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"o\">-</span><span class=\"mi\">96</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">next_vertex</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">vector3</span><span class=\"p\">(</span><span class=\"mi\">96</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"n\">friction</span> <span class=\"o\">=</span> <span class=\"mf\">0.6</span><span class=\"p\">,</span>\n<span class=\"p\">})</span>\n</code></pre></div>",
1722
+ "replaces": "",
1723
+ "error": "",
1724
+ "tparams": [],
1725
+ "members": [],
1726
+ "notes": [],
1727
+ "language": ""
1728
+ },
1729
+ {
1730
+ "type": "FUNCTION",
1731
+ "name": "b2d.body.destroy_shape",
1732
+ "brief": "Destroy a shape. This removes the shape from the b...",
1733
+ "description": "Destroy a shape. This removes the shape from the broad-phase and\ndestroys all contacts associated with this shape. This will\nautomatically adjust the mass of the body if the body is dynamic and the\nshape has positive density.\nAll shapes attached to a body are implicitly destroyed when the body is destroyed.",
1734
+ "returnvalues": [],
1735
+ "parameters": [
1736
+ {
1737
+ "name": "body",
1738
+ "doc": "body",
1739
+ "types": ["b2Body"],
1740
+ "is_optional": "False"
1741
+ },
1742
+ {
1743
+ "name": "shape_index",
1744
+ "doc": "1-based shape index from <code>b2d.body.get_shapes</code>",
1745
+ "types": ["number"],
1746
+ "is_optional": "False"
1747
+ }
1748
+ ],
1749
+ "examples": "",
1750
+ "replaces": "",
1751
+ "error": "",
1752
+ "tparams": [],
1753
+ "members": [],
1754
+ "notes": [],
1755
+ "language": ""
1756
+ },
1757
+ {
1758
+ "type": "FUNCTION",
1759
+ "name": "b2d.body.get_transform",
1760
+ "brief": "Get the body transform for the body's origin.",
1761
+ "description": "Get the body transform for the body's origin.",
1762
+ "returnvalues": [
1763
+ {
1764
+ "name": "transform",
1765
+ "doc": "the world position of the body's origin.",
1766
+ "types": ["b2Transform"]
1767
+ }
1768
+ ],
1769
+ "parameters": [
1770
+ {
1771
+ "name": "body",
1772
+ "doc": "body",
1773
+ "types": ["b2Body"],
1774
+ "is_optional": "False"
1775
+ }
1776
+ ],
1777
+ "examples": "",
1778
+ "replaces": "",
1779
+ "error": "",
1780
+ "tparams": [],
1781
+ "members": [],
1782
+ "notes": [],
1783
+ "language": ""
1784
+ },
1785
+ {
1786
+ "type": "FUNCTION",
1787
+ "name": "b2d.body.get_angle",
1788
+ "brief": "Get the angle in radians.",
1789
+ "description": "Get the angle in radians.",
1790
+ "returnvalues": [
1791
+ {
1792
+ "name": "angle",
1793
+ "doc": "the current world rotation angle in radians.",
1794
+ "types": ["number"]
1795
+ }
1796
+ ],
1797
+ "parameters": [
1798
+ {
1799
+ "name": "body",
1800
+ "doc": "body",
1801
+ "types": ["b2Body"],
1802
+ "is_optional": "False"
1803
+ }
1804
+ ],
1805
+ "examples": "",
1806
+ "replaces": "",
1807
+ "error": "",
1808
+ "tparams": [],
1809
+ "members": [],
1810
+ "notes": [],
1811
+ "language": ""
1812
+ },
1813
+ {
1814
+ "type": "FUNCTION",
1815
+ "name": "b2d.body.get_world_center_of_mass",
1816
+ "brief": "Get the world position of the center of mass.",
1817
+ "description": "Get the world position of the center of mass.",
1818
+ "returnvalues": [
1819
+ {
1820
+ "name": "center",
1821
+ "doc": "Get the world position of the center of mass.",
1822
+ "types": ["vector3"]
1823
+ }
1824
+ ],
1825
+ "parameters": [
1826
+ {
1827
+ "name": "body",
1828
+ "doc": "body",
1829
+ "types": ["b2Body"],
1830
+ "is_optional": "False"
1831
+ }
1832
+ ],
1833
+ "examples": "",
1834
+ "replaces": "",
1835
+ "error": "",
1836
+ "tparams": [],
1837
+ "members": [],
1838
+ "notes": [],
1839
+ "language": ""
1840
+ },
1841
+ {
1842
+ "type": "FUNCTION",
1843
+ "name": "b2d.body.get_local_center_of_mass",
1844
+ "brief": "Get the local position of the center of mass.",
1845
+ "description": "Get the local position of the center of mass.",
1846
+ "returnvalues": [
1847
+ {
1848
+ "name": "center",
1849
+ "doc": "Get the local position of the center of mass.",
1850
+ "types": ["vector3"]
1851
+ }
1852
+ ],
1853
+ "parameters": [
1854
+ {
1855
+ "name": "body",
1856
+ "doc": "body",
1857
+ "types": ["b2Body"],
1858
+ "is_optional": "False"
1859
+ }
1860
+ ],
1861
+ "examples": "",
1862
+ "replaces": "",
1863
+ "error": "",
1864
+ "tparams": [],
1865
+ "members": [],
1866
+ "notes": [],
1867
+ "language": ""
1868
+ },
1869
+ {
1870
+ "type": "FUNCTION",
1871
+ "name": "b2d.body.get_rotational_inertia",
1872
+ "brief": "Get the rotational inertia of the body about the local origin.",
1873
+ "description": "Get the rotational inertia of the body about the local origin.",
1874
+ "returnvalues": [
1875
+ {
1876
+ "name": "inertia",
1877
+ "doc": "the rotational inertia, usually in kg-m^2.",
1878
+ "types": ["number"]
1879
+ }
1880
+ ],
1881
+ "parameters": [
1882
+ {
1883
+ "name": "body",
1884
+ "doc": "body",
1885
+ "types": ["b2Body"],
1886
+ "is_optional": "False"
1887
+ }
1888
+ ],
1889
+ "examples": "",
1890
+ "replaces": "",
1891
+ "error": "",
1892
+ "tparams": [],
1893
+ "members": [],
1894
+ "notes": [],
1895
+ "language": ""
1896
+ },
1897
+ {
1898
+ "type": "FUNCTION",
1899
+ "name": "b2d.body.get_mass_data",
1900
+ "brief": "Get the mass data of the body.",
1901
+ "description": "Get the mass data of the body.",
1902
+ "returnvalues": [
1903
+ {
1904
+ "name": "data",
1905
+ "doc": "a struct containing the mass, inertia and center of the body.",
1906
+ "types": ["b2MassData"]
1907
+ }
1908
+ ],
1909
+ "parameters": [
1910
+ {
1911
+ "name": "body",
1912
+ "doc": "body",
1913
+ "types": ["b2Body"],
1914
+ "is_optional": "False"
1915
+ }
1916
+ ],
1917
+ "examples": "",
1918
+ "replaces": "",
1919
+ "error": "",
1920
+ "tparams": [],
1921
+ "members": [],
1922
+ "notes": [],
1923
+ "language": ""
1924
+ },
1925
+ {
1926
+ "type": "FUNCTION",
1927
+ "name": "b2d.body.set_mass_data",
1928
+ "brief": "Set the mass properties to override the mass prope...",
1929
+ "description": "Set the mass properties to override the mass properties of the shapes.",
1930
+ "returnvalues": [],
1931
+ "parameters": [
1932
+ {
1933
+ "name": "body",
1934
+ "doc": "body",
1935
+ "types": ["b2Body"],
1936
+ "is_optional": "False"
1937
+ },
1938
+ {
1939
+ "name": "data",
1940
+ "doc": "the mass properties.",
1941
+ "types": ["b2MassData"],
1942
+ "is_optional": "False"
1943
+ }
1944
+ ],
1945
+ "examples": "",
1946
+ "replaces": "",
1947
+ "error": "",
1948
+ "tparams": [],
1949
+ "members": [],
1950
+ "notes": [
1951
+ "This function has no effect if the body isn't dynamic.",
1952
+ "This changes the center of mass position.",
1953
+ "Creating or destroying shapes can also alter the mass."
1954
+ ],
1955
+ "language": ""
1956
+ },
1957
+ {
1958
+ "type": "FUNCTION",
1959
+ "name": "b2d.body.enable_sleep",
1960
+ "brief": "You can disable sleeping on this body. If you disable sleeping, the body will be woken.",
1961
+ "description": "You can disable sleeping on this body. If you disable sleeping, the body will be woken.",
1962
+ "returnvalues": [],
1963
+ "parameters": [
1964
+ {
1965
+ "name": "body",
1966
+ "doc": "body",
1967
+ "types": ["b2Body"],
1968
+ "is_optional": "False"
1969
+ },
1970
+ {
1971
+ "name": "enable",
1972
+ "doc": "if false, the body will never sleep, and consume more CPU",
1973
+ "types": ["boolean"],
1974
+ "is_optional": "False"
1975
+ }
1976
+ ],
1977
+ "examples": "",
1978
+ "replaces": "",
1979
+ "error": "",
1980
+ "tparams": [],
1981
+ "members": [],
1982
+ "notes": [],
1983
+ "language": ""
1984
+ },
1985
+ {
1986
+ "type": "FUNCTION",
1987
+ "name": "b2d.body.is_sleeping_enabled",
1988
+ "brief": "Is this body allowed to sleep",
1989
+ "description": "Is this body allowed to sleep",
1990
+ "returnvalues": [
1991
+ {
1992
+ "name": "enabled",
1993
+ "doc": "true if the body is allowed to sleep",
1994
+ "types": ["boolean"]
1995
+ }
1996
+ ],
1997
+ "parameters": [
1998
+ {
1999
+ "name": "body",
2000
+ "doc": "body",
2001
+ "types": ["b2Body"],
2002
+ "is_optional": "False"
2003
+ }
2004
+ ],
2005
+ "examples": "",
2006
+ "replaces": "",
2007
+ "error": "",
2008
+ "tparams": [],
2009
+ "members": [],
2010
+ "notes": [],
2011
+ "language": ""
2012
+ },
2013
+ {
2014
+ "type": "FUNCTION",
2015
+ "name": "b2d.body.get_shapes",
2016
+ "brief": "Get the list of all shapes attached to this body.",
2017
+ "description": "Get the list of all shapes attached to this body.",
2018
+ "returnvalues": [
2019
+ {
2020
+ "name": "shapes",
2021
+ "doc": "a table of shape info entries. Each entry includes <code>shape_id</code> for use with <code>b2d.shape</code> functions.",
2022
+ "types": ["table"]
2023
+ }
2024
+ ],
2025
+ "parameters": [
2026
+ {
2027
+ "name": "body",
2028
+ "doc": "body",
2029
+ "types": ["b2Body"],
2030
+ "is_optional": "False"
2031
+ }
2032
+ ],
2033
+ "examples": "",
2034
+ "replaces": "",
2035
+ "error": "",
2036
+ "tparams": [],
2037
+ "members": [],
2038
+ "notes": [],
2039
+ "language": ""
2040
+ },
2041
+ {
2042
+ "type": "FUNCTION",
2043
+ "name": "b2d.body.get_user_data",
2044
+ "brief": "Get the user data pointer that was provided in the body definition.",
2045
+ "description": "Get the user data pointer that was provided in the body definition.",
2046
+ "returnvalues": [
2047
+ {
2048
+ "name": "id",
2049
+ "doc": "the game object id this body is connected to",
2050
+ "types": ["hash"]
2051
+ }
2052
+ ],
2053
+ "parameters": [
2054
+ {
2055
+ "name": "body",
2056
+ "doc": "body",
2057
+ "types": ["b2Body"],
2058
+ "is_optional": "False"
2059
+ }
2060
+ ],
2061
+ "examples": "",
2062
+ "replaces": "",
2063
+ "error": "",
2064
+ "tparams": [],
2065
+ "members": [],
2066
+ "notes": [],
2067
+ "language": ""
2068
+ },
2069
+ {
2070
+ "type": "FUNCTION",
2071
+ "name": "b2d.body.set_user_data",
2072
+ "brief": "Set the user data. Use this to store your application specific data.",
2073
+ "description": "Set the user data. Use this to store your application specific data.",
2074
+ "returnvalues": [],
2075
+ "parameters": [
2076
+ {
2077
+ "name": "body",
2078
+ "doc": "body",
2079
+ "types": ["b2Body"],
2080
+ "is_optional": "False"
2081
+ },
2082
+ {
2083
+ "name": "id",
2084
+ "doc": "the game object id",
2085
+ "types": ["hash"],
2086
+ "is_optional": "False"
2087
+ }
2088
+ ],
2089
+ "examples": "",
2090
+ "replaces": "",
2091
+ "error": "",
2092
+ "tparams": [],
2093
+ "members": [],
2094
+ "notes": [],
2095
+ "language": ""
2096
+ },
2097
+ {
2098
+ "type": "FUNCTION",
2099
+ "name": "b2d.body.is_valid",
2100
+ "brief": "Validate a body handle.",
2101
+ "description": "Validate a body handle.",
2102
+ "returnvalues": [
2103
+ {
2104
+ "name": "valid",
2105
+ "doc": "true if the body handle still refers to a live Box2D body",
2106
+ "types": ["boolean"]
2107
+ }
2108
+ ],
2109
+ "parameters": [
2110
+ {
2111
+ "name": "body",
2112
+ "doc": "body",
2113
+ "types": ["b2Body"],
2114
+ "is_optional": "False"
2115
+ }
2116
+ ],
2117
+ "examples": "",
2118
+ "replaces": "",
2119
+ "error": "",
2120
+ "tparams": [],
2121
+ "members": [],
2122
+ "notes": [],
2123
+ "language": ""
2124
+ },
2125
+ {
2126
+ "type": "FUNCTION",
2127
+ "name": "b2d.body.set_name",
2128
+ "brief": "Set the body name.",
2129
+ "description": "Set the body name.",
2130
+ "returnvalues": [],
2131
+ "parameters": [
2132
+ {
2133
+ "name": "body",
2134
+ "doc": "body",
2135
+ "types": ["b2Body"],
2136
+ "is_optional": "False"
2137
+ },
2138
+ {
2139
+ "name": "name",
2140
+ "doc": "body name",
2141
+ "types": ["string"],
2142
+ "is_optional": "False"
2143
+ }
2144
+ ],
2145
+ "examples": "",
2146
+ "replaces": "",
2147
+ "error": "",
2148
+ "tparams": [],
2149
+ "members": [],
2150
+ "notes": [],
2151
+ "language": ""
2152
+ },
2153
+ {
2154
+ "type": "FUNCTION",
2155
+ "name": "b2d.body.get_name",
2156
+ "brief": "Get the body name.",
2157
+ "description": "Get the body name.",
2158
+ "returnvalues": [
2159
+ {
2160
+ "name": "name",
2161
+ "doc": "body name, or nil if no name is set",
2162
+ "types": ["string"]
2163
+ }
2164
+ ],
2165
+ "parameters": [
2166
+ {
2167
+ "name": "body",
2168
+ "doc": "body",
2169
+ "types": ["b2Body"],
2170
+ "is_optional": "False"
2171
+ }
2172
+ ],
2173
+ "examples": "",
2174
+ "replaces": "",
2175
+ "error": "",
2176
+ "tparams": [],
2177
+ "members": [],
2178
+ "notes": [],
2179
+ "language": ""
2180
+ },
2181
+ {
2182
+ "type": "FUNCTION",
2183
+ "name": "b2d.body.set_target_transform",
2184
+ "brief": "Set velocity to reach a target transform.",
2185
+ "description": "Set velocity to reach a target transform.",
2186
+ "returnvalues": [],
2187
+ "parameters": [
2188
+ {
2189
+ "name": "body",
2190
+ "doc": "body",
2191
+ "types": ["b2Body"],
2192
+ "is_optional": "False"
2193
+ },
2194
+ {
2195
+ "name": "position",
2196
+ "doc": "target world position",
2197
+ "types": ["vector3"],
2198
+ "is_optional": "False"
2199
+ },
2200
+ {
2201
+ "name": "angle",
2202
+ "doc": "target world angle in radians",
2203
+ "types": ["number"],
2204
+ "is_optional": "False"
2205
+ },
2206
+ {
2207
+ "name": "time_step",
2208
+ "doc": "time step used to compute velocity",
2209
+ "types": ["number"],
2210
+ "is_optional": "False"
2211
+ }
2212
+ ],
2213
+ "examples": "",
2214
+ "replaces": "",
2215
+ "error": "",
2216
+ "tparams": [],
2217
+ "members": [],
2218
+ "notes": [],
2219
+ "language": ""
2220
+ },
2221
+ {
2222
+ "type": "FUNCTION",
2223
+ "name": "b2d.body.apply_linear_impulse_to_center",
2224
+ "brief": "Apply a linear impulse to the center of mass.",
2225
+ "description": "Apply a linear impulse to the center of mass.",
2226
+ "returnvalues": [],
2227
+ "parameters": [
2228
+ {
2229
+ "name": "body",
2230
+ "doc": "body",
2231
+ "types": ["b2Body"],
2232
+ "is_optional": "False"
2233
+ },
2234
+ {
2235
+ "name": "impulse",
2236
+ "doc": "world impulse vector",
2237
+ "types": ["vector3"],
2238
+ "is_optional": "False"
2239
+ }
2240
+ ],
2241
+ "examples": "",
2242
+ "replaces": "",
2243
+ "error": "",
2244
+ "tparams": [],
2245
+ "members": [],
2246
+ "notes": [],
2247
+ "language": ""
2248
+ },
2249
+ {
2250
+ "type": "FUNCTION",
2251
+ "name": "b2d.body.set_sleep_threshold",
2252
+ "brief": "Set the sleep velocity threshold.",
2253
+ "description": "Set the sleep velocity threshold.",
2254
+ "returnvalues": [],
2255
+ "parameters": [
2256
+ {
2257
+ "name": "body",
2258
+ "doc": "body",
2259
+ "types": ["b2Body"],
2260
+ "is_optional": "False"
2261
+ },
2262
+ {
2263
+ "name": "threshold",
2264
+ "doc": "velocity threshold in Defold units per second",
2265
+ "types": ["number"],
2266
+ "is_optional": "False"
2267
+ }
2268
+ ],
2269
+ "examples": "",
2270
+ "replaces": "",
2271
+ "error": "",
2272
+ "tparams": [],
2273
+ "members": [],
2274
+ "notes": [],
2275
+ "language": ""
2276
+ },
2277
+ {
2278
+ "type": "FUNCTION",
2279
+ "name": "b2d.body.get_sleep_threshold",
2280
+ "brief": "Get the sleep velocity threshold.",
2281
+ "description": "Get the sleep velocity threshold.",
2282
+ "returnvalues": [
2283
+ {
2284
+ "name": "threshold",
2285
+ "doc": "velocity threshold in Defold units per second",
2286
+ "types": ["number"]
2287
+ }
2288
+ ],
2289
+ "parameters": [
2290
+ {
2291
+ "name": "body",
2292
+ "doc": "body",
2293
+ "types": ["b2Body"],
2294
+ "is_optional": "False"
2295
+ }
2296
+ ],
2297
+ "examples": "",
2298
+ "replaces": "",
2299
+ "error": "",
2300
+ "tparams": [],
2301
+ "members": [],
2302
+ "notes": [],
2303
+ "language": ""
2304
+ },
2305
+ {
2306
+ "type": "FUNCTION",
2307
+ "name": "b2d.body.enable_contact_events",
2308
+ "brief": "Enable or disable contact events on all body shapes.",
2309
+ "description": "Enable or disable contact events on all body shapes.",
2310
+ "returnvalues": [],
2311
+ "parameters": [
2312
+ {
2313
+ "name": "body",
2314
+ "doc": "body",
2315
+ "types": ["b2Body"],
2316
+ "is_optional": "False"
2317
+ },
2318
+ {
2319
+ "name": "enable",
2320
+ "doc": "true to enable contact events",
2321
+ "types": ["boolean"],
2322
+ "is_optional": "False"
2323
+ }
2324
+ ],
2325
+ "examples": "",
2326
+ "replaces": "",
2327
+ "error": "",
2328
+ "tparams": [],
2329
+ "members": [],
2330
+ "notes": [],
2331
+ "language": ""
2332
+ },
2333
+ {
2334
+ "type": "FUNCTION",
2335
+ "name": "b2d.body.enable_hit_events",
2336
+ "brief": "Enable or disable hit events on all body shapes.",
2337
+ "description": "Enable or disable hit events on all body shapes.",
2338
+ "returnvalues": [],
2339
+ "parameters": [
2340
+ {
2341
+ "name": "body",
2342
+ "doc": "body",
2343
+ "types": ["b2Body"],
2344
+ "is_optional": "False"
2345
+ },
2346
+ {
2347
+ "name": "enable",
2348
+ "doc": "true to enable hit events",
2349
+ "types": ["boolean"],
2350
+ "is_optional": "False"
2351
+ }
2352
+ ],
2353
+ "examples": "",
2354
+ "replaces": "",
2355
+ "error": "",
2356
+ "tparams": [],
2357
+ "members": [],
2358
+ "notes": [],
2359
+ "language": ""
2360
+ },
2361
+ {
2362
+ "type": "FUNCTION",
2363
+ "name": "b2d.body.get_contact_data",
2364
+ "brief": "Get touching contact data for a body.",
2365
+ "description": "Get touching contact data for a body.",
2366
+ "returnvalues": [
2367
+ {
2368
+ "name": "contacts",
2369
+ "doc": "array of contact tables",
2370
+ "types": ["table"]
2371
+ }
2372
+ ],
2373
+ "parameters": [
2374
+ {
2375
+ "name": "body",
2376
+ "doc": "body",
2377
+ "types": ["b2Body"],
2378
+ "is_optional": "False"
2379
+ }
2380
+ ],
2381
+ "examples": "",
2382
+ "replaces": "",
2383
+ "error": "",
2384
+ "tparams": [],
2385
+ "members": [],
2386
+ "notes": [],
2387
+ "language": ""
2388
+ },
2389
+ {
2390
+ "type": "FUNCTION",
2391
+ "name": "b2d.body.compute_aabb",
2392
+ "brief": "Compute the world AABB of all body shapes.",
2393
+ "description": "Compute the world AABB of all body shapes.",
2394
+ "returnvalues": [
2395
+ {
2396
+ "name": "aabb",
2397
+ "doc": "table with <code>lower</code> and <code>upper</code> vector3 fields",
2398
+ "types": ["table"]
2399
+ }
2400
+ ],
2401
+ "parameters": [
2402
+ {
2403
+ "name": "body",
2404
+ "doc": "body",
2405
+ "types": ["b2Body"],
2406
+ "is_optional": "False"
2407
+ }
2408
+ ],
2409
+ "examples": "",
2410
+ "replaces": "",
2411
+ "error": "",
2412
+ "tparams": [],
2413
+ "members": [],
2414
+ "notes": [],
2415
+ "language": ""
2416
+ }
2417
+ ],
2418
+ "info": {
2419
+ "namespace": "b2d.body",
2420
+ "name": "b2d.body",
2421
+ "brief": "Box2D b2Body documentation",
2422
+ "description": "Functions for interacting with Box2D bodies.",
2423
+ "path": "engine/gamesys/src/gamesys/scripts/box2d/v2/script_box2d_body_v2.cpp",
2424
+ "file": "",
2425
+ "notes": [],
2426
+ "language": "Lua"
2427
+ }
2428
+ }