@defold-typescript/types 0.52.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 (521) hide show
  1. package/api-signatures.json +2074 -1964
  2. package/dist/cli-runtime.js +8966 -0
  3. package/dist/identity-vocabulary.json +660 -0
  4. package/dist/src/index.d.ts +18 -0
  5. package/examples/translations.json +15 -15
  6. package/fixtures/defold-1.12.4/b2d_body_doc.json +1327 -0
  7. package/fixtures/defold-1.12.4/b2d_doc.json +107 -0
  8. package/fixtures/defold-1.12.4/base_doc.json +758 -0
  9. package/fixtures/defold-1.12.4/bit_doc.json +404 -0
  10. package/fixtures/defold-1.12.4/buffer_doc.json +422 -0
  11. package/fixtures/defold-1.12.4/camera_doc.json +664 -0
  12. package/fixtures/defold-1.12.4/collectionfactory_doc.json +219 -0
  13. package/fixtures/defold-1.12.4/collectionproxy_doc.json +289 -0
  14. package/fixtures/defold-1.12.4/coroutine_doc.json +151 -0
  15. package/fixtures/defold-1.12.4/crash_doc.json +497 -0
  16. package/fixtures/defold-1.12.4/debug_doc.json +410 -0
  17. package/fixtures/defold-1.12.4/factory_doc.json +219 -0
  18. package/fixtures/defold-1.12.4/font_doc.json +141 -0
  19. package/fixtures/defold-1.12.4/globals_doc.json +42 -0
  20. package/fixtures/defold-1.12.4/go-instance-functions.json +111 -0
  21. package/fixtures/defold-1.12.4/go_doc.json +1901 -0
  22. package/fixtures/defold-1.12.4/graphics_doc.json +1634 -0
  23. package/fixtures/defold-1.12.4/gui_doc.json +5249 -0
  24. package/fixtures/defold-1.12.4/html5_doc.json +64 -0
  25. package/fixtures/defold-1.12.4/http_doc.json +66 -0
  26. package/fixtures/defold-1.12.4/image_doc.json +170 -0
  27. package/fixtures/defold-1.12.4/io_doc.json +399 -0
  28. package/fixtures/defold-1.12.4/json_doc.json +97 -0
  29. package/fixtures/defold-1.12.4/label_doc.json +220 -0
  30. package/fixtures/defold-1.12.4/liveupdate_doc.json +308 -0
  31. package/fixtures/defold-1.12.4/math_doc.json +702 -0
  32. package/fixtures/defold-1.12.4/messages_doc.json +579 -0
  33. package/fixtures/defold-1.12.4/model_doc.json +315 -0
  34. package/fixtures/defold-1.12.4/msg_doc.json +137 -0
  35. package/fixtures/defold-1.12.4/os_doc.json +266 -0
  36. package/fixtures/defold-1.12.4/package_doc.json +139 -0
  37. package/fixtures/defold-1.12.4/particlefx_doc.json +249 -0
  38. package/fixtures/defold-1.12.4/physics_doc.json +1120 -0
  39. package/fixtures/defold-1.12.4/profiler_doc.json +375 -0
  40. package/fixtures/defold-1.12.4/render_doc.json +1167 -0
  41. package/fixtures/defold-1.12.4/resource_doc.json +762 -0
  42. package/fixtures/defold-1.12.4/socket_doc.json +2194 -0
  43. package/fixtures/defold-1.12.4/sound_doc.json +582 -0
  44. package/fixtures/defold-1.12.4/sprite_doc.json +245 -0
  45. package/fixtures/defold-1.12.4/string_doc.json +412 -0
  46. package/fixtures/defold-1.12.4/sys_doc.json +853 -0
  47. package/fixtures/defold-1.12.4/table_doc.json +166 -0
  48. package/fixtures/defold-1.12.4/tilemap_doc.json +374 -0
  49. package/fixtures/defold-1.12.4/timer_doc.json +153 -0
  50. package/fixtures/defold-1.12.4/types_doc.json +212 -0
  51. package/fixtures/defold-1.12.4/vmath_doc.json +1814 -0
  52. package/fixtures/defold-1.12.4/window_doc.json +388 -0
  53. package/fixtures/defold-1.12.4/zlib_doc.json +70 -0
  54. package/fixtures/defold-1.13.0/b2d_body_doc.json +2428 -0
  55. package/fixtures/defold-1.13.0/b2d_chain_doc.json +394 -0
  56. package/fixtures/defold-1.13.0/b2d_doc.json +128 -0
  57. package/fixtures/defold-1.13.0/b2d_fixture_doc.json +594 -0
  58. package/fixtures/defold-1.13.0/b2d_joint_doc.json +3315 -0
  59. package/fixtures/defold-1.13.0/b2d_shape_doc.json +802 -0
  60. package/fixtures/defold-1.13.0/b2d_world_doc.json +1314 -0
  61. package/fixtures/defold-1.13.0/base_doc.json +758 -0
  62. package/fixtures/defold-1.13.0/bit_doc.json +404 -0
  63. package/fixtures/defold-1.13.0/buffer_doc.json +422 -0
  64. package/fixtures/defold-1.13.0/camera_doc.json +900 -0
  65. package/fixtures/defold-1.13.0/collectionfactory_doc.json +219 -0
  66. package/fixtures/defold-1.13.0/collectionproxy_doc.json +289 -0
  67. package/fixtures/defold-1.13.0/compute_doc.json +182 -0
  68. package/fixtures/defold-1.13.0/coroutine_doc.json +151 -0
  69. package/fixtures/defold-1.13.0/crash_doc.json +497 -0
  70. package/fixtures/defold-1.13.0/debug_doc.json +410 -0
  71. package/fixtures/defold-1.13.0/editor_doc.json +3665 -0
  72. package/fixtures/defold-1.13.0/editor_http_doc.json +273 -0
  73. package/fixtures/defold-1.13.0/editor_json_doc.json +59 -0
  74. package/fixtures/defold-1.13.0/editor_localization_doc.json +138 -0
  75. package/fixtures/defold-1.13.0/editor_pprint_doc.json +36 -0
  76. package/fixtures/defold-1.13.0/editor_tilemap_tiles_doc.json +235 -0
  77. package/fixtures/defold-1.13.0/editor_zip_doc.json +163 -0
  78. package/fixtures/defold-1.13.0/editor_zlib_doc.json +48 -0
  79. package/fixtures/defold-1.13.0/factory_doc.json +219 -0
  80. package/fixtures/defold-1.13.0/font_doc.json +141 -0
  81. package/fixtures/defold-1.13.0/globals_doc.json +42 -0
  82. package/fixtures/defold-1.13.0/go-instance-functions.json +101 -0
  83. package/fixtures/defold-1.13.0/go_doc.json +1989 -0
  84. package/fixtures/defold-1.13.0/graphics_doc.json +1886 -0
  85. package/fixtures/defold-1.13.0/gui_doc.json +5277 -0
  86. package/fixtures/defold-1.13.0/html5_doc.json +64 -0
  87. package/fixtures/defold-1.13.0/http_doc.json +66 -0
  88. package/fixtures/defold-1.13.0/image_doc.json +170 -0
  89. package/fixtures/defold-1.13.0/import-manifest.json +10558 -0
  90. package/fixtures/defold-1.13.0/io_doc.json +399 -0
  91. package/fixtures/defold-1.13.0/json_doc.json +97 -0
  92. package/fixtures/defold-1.13.0/label_doc.json +220 -0
  93. package/fixtures/defold-1.13.0/liveupdate_doc.json +330 -0
  94. package/fixtures/defold-1.13.0/material_doc.json +238 -0
  95. package/fixtures/defold-1.13.0/math_doc.json +702 -0
  96. package/fixtures/defold-1.13.0/model_doc.json +412 -0
  97. package/fixtures/defold-1.13.0/msg_doc.json +137 -0
  98. package/fixtures/defold-1.13.0/os_doc.json +266 -0
  99. package/fixtures/defold-1.13.0/package_doc.json +139 -0
  100. package/fixtures/defold-1.13.0/particlefx_doc.json +249 -0
  101. package/fixtures/defold-1.13.0/physics_doc.json +1492 -0
  102. package/fixtures/defold-1.13.0/profiler_doc.json +375 -0
  103. package/fixtures/defold-1.13.0/render_doc.json +1381 -0
  104. package/fixtures/defold-1.13.0/resource_doc.json +762 -0
  105. package/fixtures/defold-1.13.0/socket_doc.json +2194 -0
  106. package/fixtures/defold-1.13.0/sound_doc.json +582 -0
  107. package/fixtures/defold-1.13.0/sprite_doc.json +335 -0
  108. package/fixtures/defold-1.13.0/string_doc.json +412 -0
  109. package/fixtures/defold-1.13.0/sys_doc.json +1142 -0
  110. package/fixtures/defold-1.13.0/table_doc.json +166 -0
  111. package/fixtures/defold-1.13.0/tilemap_doc.json +402 -0
  112. package/fixtures/defold-1.13.0/timer_doc.json +153 -0
  113. package/fixtures/defold-1.13.0/types_doc.json +212 -0
  114. package/fixtures/defold-1.13.0/vmath_doc.json +1814 -0
  115. package/fixtures/defold-1.13.0/window_doc.json +388 -0
  116. package/fixtures/defold-1.13.0/zlib_doc.json +70 -0
  117. package/fixtures/defold-1.13.1/b2d_body_doc.json +2428 -0
  118. package/fixtures/defold-1.13.1/b2d_chain_doc.json +394 -0
  119. package/fixtures/defold-1.13.1/b2d_doc.json +128 -0
  120. package/fixtures/defold-1.13.1/b2d_fixture_doc.json +594 -0
  121. package/fixtures/defold-1.13.1/b2d_joint_doc.json +3315 -0
  122. package/fixtures/defold-1.13.1/b2d_shape_doc.json +802 -0
  123. package/fixtures/defold-1.13.1/b2d_world_doc.json +1314 -0
  124. package/fixtures/defold-1.13.1/base_doc.json +758 -0
  125. package/fixtures/defold-1.13.1/bit_doc.json +404 -0
  126. package/fixtures/defold-1.13.1/buffer_doc.json +422 -0
  127. package/fixtures/defold-1.13.1/camera_doc.json +900 -0
  128. package/fixtures/defold-1.13.1/collectionfactory_doc.json +219 -0
  129. package/fixtures/defold-1.13.1/collectionproxy_doc.json +323 -0
  130. package/fixtures/defold-1.13.1/compute_doc.json +182 -0
  131. package/fixtures/defold-1.13.1/coroutine_doc.json +151 -0
  132. package/fixtures/defold-1.13.1/crash_doc.json +497 -0
  133. package/fixtures/defold-1.13.1/debug_doc.json +410 -0
  134. package/fixtures/defold-1.13.1/editor_doc.json +3880 -0
  135. package/fixtures/defold-1.13.1/editor_http_doc.json +273 -0
  136. package/fixtures/defold-1.13.1/editor_image_doc.json +128 -0
  137. package/fixtures/defold-1.13.1/editor_json_doc.json +59 -0
  138. package/fixtures/defold-1.13.1/editor_localization_doc.json +138 -0
  139. package/fixtures/defold-1.13.1/editor_pprint_doc.json +36 -0
  140. package/fixtures/defold-1.13.1/editor_tilemap_tiles_doc.json +235 -0
  141. package/fixtures/defold-1.13.1/editor_zip_doc.json +163 -0
  142. package/fixtures/defold-1.13.1/editor_zlib_doc.json +48 -0
  143. package/fixtures/defold-1.13.1/factory_doc.json +219 -0
  144. package/fixtures/defold-1.13.1/font_doc.json +141 -0
  145. package/fixtures/defold-1.13.1/globals_doc.json +42 -0
  146. package/fixtures/defold-1.13.1/go-instance-functions.json +102 -0
  147. package/fixtures/defold-1.13.1/go_doc.json +1989 -0
  148. package/fixtures/defold-1.13.1/graphics_doc.json +1886 -0
  149. package/fixtures/defold-1.13.1/gui_doc.json +5277 -0
  150. package/fixtures/defold-1.13.1/html5_doc.json +64 -0
  151. package/fixtures/defold-1.13.1/http_doc.json +66 -0
  152. package/fixtures/defold-1.13.1/image_doc.json +170 -0
  153. package/fixtures/defold-1.13.1/import-manifest.json +10091 -0
  154. package/fixtures/defold-1.13.1/io_doc.json +399 -0
  155. package/fixtures/defold-1.13.1/json_doc.json +97 -0
  156. package/fixtures/defold-1.13.1/label_doc.json +220 -0
  157. package/fixtures/defold-1.13.1/liveupdate_doc.json +330 -0
  158. package/fixtures/defold-1.13.1/material_doc.json +238 -0
  159. package/fixtures/defold-1.13.1/math_doc.json +702 -0
  160. package/fixtures/defold-1.13.1/model_doc.json +412 -0
  161. package/fixtures/defold-1.13.1/msg_doc.json +137 -0
  162. package/fixtures/defold-1.13.1/os_doc.json +266 -0
  163. package/fixtures/defold-1.13.1/package_doc.json +139 -0
  164. package/fixtures/defold-1.13.1/particlefx_doc.json +249 -0
  165. package/fixtures/defold-1.13.1/physics_doc.json +1492 -0
  166. package/fixtures/defold-1.13.1/profiler_doc.json +375 -0
  167. package/fixtures/defold-1.13.1/render_doc.json +1381 -0
  168. package/fixtures/defold-1.13.1/resource_doc.json +762 -0
  169. package/fixtures/defold-1.13.1/socket_doc.json +2194 -0
  170. package/fixtures/defold-1.13.1/sound_doc.json +582 -0
  171. package/fixtures/defold-1.13.1/sprite_doc.json +335 -0
  172. package/fixtures/defold-1.13.1/string_doc.json +412 -0
  173. package/fixtures/defold-1.13.1/sys_doc.json +1142 -0
  174. package/fixtures/defold-1.13.1/table_doc.json +166 -0
  175. package/fixtures/defold-1.13.1/tilemap_doc.json +402 -0
  176. package/fixtures/defold-1.13.1/timer_doc.json +153 -0
  177. package/fixtures/defold-1.13.1/types_doc.json +212 -0
  178. package/fixtures/defold-1.13.1/vmath_doc.json +1814 -0
  179. package/fixtures/defold-1.13.1/window_doc.json +388 -0
  180. package/fixtures/defold-1.13.1/zlib_doc.json +70 -0
  181. package/fixtures/defold-1.13.2/b2d_body_doc.json +2359 -0
  182. package/fixtures/defold-1.13.2/b2d_chain_doc.json +395 -0
  183. package/fixtures/defold-1.13.2/b2d_doc.json +1945 -0
  184. package/fixtures/defold-1.13.2/b2d_fixture_doc.json +595 -0
  185. package/fixtures/defold-1.13.2/b2d_joint_doc.json +3178 -0
  186. package/fixtures/defold-1.13.2/b2d_shape_doc.json +767 -0
  187. package/fixtures/defold-1.13.2/b2d_world_doc.json +1315 -0
  188. package/fixtures/defold-1.13.2/base_doc.json +759 -0
  189. package/fixtures/defold-1.13.2/bit_doc.json +405 -0
  190. package/fixtures/defold-1.13.2/buffer_doc.json +393 -0
  191. package/fixtures/defold-1.13.2/bullet3d_collision_object_doc.json +1206 -0
  192. package/fixtures/defold-1.13.2/bullet3d_constraint_doc.json +2455 -0
  193. package/fixtures/defold-1.13.2/bullet3d_doc.json +215 -0
  194. package/fixtures/defold-1.13.2/bullet3d_rigid_body_doc.json +1376 -0
  195. package/fixtures/defold-1.13.2/bullet3d_shape_doc.json +430 -0
  196. package/fixtures/defold-1.13.2/bullet3d_world_doc.json +855 -0
  197. package/fixtures/defold-1.13.2/camera_doc.json +887 -0
  198. package/fixtures/defold-1.13.2/collectionfactory_doc.json +206 -0
  199. package/fixtures/defold-1.13.2/collectionproxy_doc.json +397 -0
  200. package/fixtures/defold-1.13.2/compute_doc.json +183 -0
  201. package/fixtures/defold-1.13.2/coroutine_doc.json +152 -0
  202. package/fixtures/defold-1.13.2/crash_doc.json +483 -0
  203. package/fixtures/defold-1.13.2/debug_doc.json +411 -0
  204. package/fixtures/defold-1.13.2/editor_doc.json +6320 -0
  205. package/fixtures/defold-1.13.2/editor_http_doc.json +476 -0
  206. package/fixtures/defold-1.13.2/editor_image_doc.json +129 -0
  207. package/fixtures/defold-1.13.2/editor_json_doc.json +81 -0
  208. package/fixtures/defold-1.13.2/editor_localization_doc.json +139 -0
  209. package/fixtures/defold-1.13.2/editor_pprint_doc.json +37 -0
  210. package/fixtures/defold-1.13.2/editor_tilemap_tiles_doc.json +292 -0
  211. package/fixtures/defold-1.13.2/editor_zip_doc.json +237 -0
  212. package/fixtures/defold-1.13.2/editor_zlib_doc.json +49 -0
  213. package/fixtures/defold-1.13.2/factory_doc.json +206 -0
  214. package/fixtures/defold-1.13.2/font_doc.json +230 -0
  215. package/fixtures/defold-1.13.2/globals_doc.json +64 -0
  216. package/fixtures/defold-1.13.2/go-instance-functions.json +106 -0
  217. package/fixtures/defold-1.13.2/go_doc.json +1789 -0
  218. package/fixtures/defold-1.13.2/graphics_doc.json +1211 -0
  219. package/fixtures/defold-1.13.2/gui_doc.json +4735 -0
  220. package/fixtures/defold-1.13.2/html5_doc.json +65 -0
  221. package/fixtures/defold-1.13.2/http_doc.json +174 -0
  222. package/fixtures/defold-1.13.2/image_doc.json +298 -0
  223. package/fixtures/defold-1.13.2/import-manifest.json +10902 -0
  224. package/fixtures/defold-1.13.2/io_doc.json +400 -0
  225. package/fixtures/defold-1.13.2/json_doc.json +140 -0
  226. package/fixtures/defold-1.13.2/label_doc.json +427 -0
  227. package/fixtures/defold-1.13.2/liveupdate_doc.json +221 -0
  228. package/fixtures/defold-1.13.2/material_doc.json +773 -0
  229. package/fixtures/defold-1.13.2/math_doc.json +703 -0
  230. package/fixtures/defold-1.13.2/model_doc.json +472 -0
  231. package/fixtures/defold-1.13.2/msg_doc.json +169 -0
  232. package/fixtures/defold-1.13.2/os_doc.json +269 -0
  233. package/fixtures/defold-1.13.2/package_doc.json +140 -0
  234. package/fixtures/defold-1.13.2/particlefx_doc.json +249 -0
  235. package/fixtures/defold-1.13.2/physics_doc.json +1624 -0
  236. package/fixtures/defold-1.13.2/profiler_doc.json +348 -0
  237. package/fixtures/defold-1.13.2/render_doc.json +1623 -0
  238. package/fixtures/defold-1.13.2/resource_doc.json +1539 -0
  239. package/fixtures/defold-1.13.2/socket_doc.json +2335 -0
  240. package/fixtures/defold-1.13.2/sound_doc.json +673 -0
  241. package/fixtures/defold-1.13.2/sprite_doc.json +364 -0
  242. package/fixtures/defold-1.13.2/string_doc.json +413 -0
  243. package/fixtures/defold-1.13.2/sys_doc.json +1347 -0
  244. package/fixtures/defold-1.13.2/table_doc.json +167 -0
  245. package/fixtures/defold-1.13.2/tilemap_doc.json +369 -0
  246. package/fixtures/defold-1.13.2/timer_doc.json +214 -0
  247. package/fixtures/defold-1.13.2/types_doc.json +213 -0
  248. package/fixtures/defold-1.13.2/vmath_doc.json +2056 -0
  249. package/fixtures/defold-1.13.2/window_doc.json +426 -0
  250. package/fixtures/defold-1.13.2/zlib_doc.json +71 -0
  251. package/fixtures/defold-1.14.0/b2d_body_doc.json +2359 -0
  252. package/fixtures/defold-1.14.0/b2d_chain_doc.json +395 -0
  253. package/fixtures/defold-1.14.0/b2d_doc.json +1973 -0
  254. package/fixtures/defold-1.14.0/b2d_fixture_doc.json +595 -0
  255. package/fixtures/defold-1.14.0/b2d_joint_doc.json +3178 -0
  256. package/fixtures/defold-1.14.0/b2d_shape_doc.json +767 -0
  257. package/fixtures/defold-1.14.0/b2d_world_doc.json +1315 -0
  258. package/fixtures/defold-1.14.0/base_doc.json +759 -0
  259. package/fixtures/defold-1.14.0/bit_doc.json +405 -0
  260. package/fixtures/defold-1.14.0/buffer_doc.json +393 -0
  261. package/fixtures/defold-1.14.0/bullet3d_collision_object_doc.json +1206 -0
  262. package/fixtures/defold-1.14.0/bullet3d_constraint_doc.json +2455 -0
  263. package/fixtures/defold-1.14.0/bullet3d_doc.json +243 -0
  264. package/fixtures/defold-1.14.0/bullet3d_rigid_body_doc.json +1376 -0
  265. package/fixtures/defold-1.14.0/bullet3d_shape_doc.json +430 -0
  266. package/fixtures/defold-1.14.0/bullet3d_world_doc.json +855 -0
  267. package/fixtures/defold-1.14.0/camera_doc.json +887 -0
  268. package/fixtures/defold-1.14.0/collectionfactory_doc.json +206 -0
  269. package/fixtures/defold-1.14.0/collectionproxy_doc.json +397 -0
  270. package/fixtures/defold-1.14.0/compute_doc.json +183 -0
  271. package/fixtures/defold-1.14.0/coroutine_doc.json +152 -0
  272. package/fixtures/defold-1.14.0/crash_doc.json +483 -0
  273. package/fixtures/defold-1.14.0/debug_doc.json +411 -0
  274. package/fixtures/defold-1.14.0/editor_doc.json +6320 -0
  275. package/fixtures/defold-1.14.0/editor_http_doc.json +476 -0
  276. package/fixtures/defold-1.14.0/editor_image_doc.json +129 -0
  277. package/fixtures/defold-1.14.0/editor_json_doc.json +81 -0
  278. package/fixtures/defold-1.14.0/editor_localization_doc.json +139 -0
  279. package/fixtures/defold-1.14.0/editor_pprint_doc.json +37 -0
  280. package/fixtures/defold-1.14.0/editor_tilemap_tiles_doc.json +292 -0
  281. package/fixtures/defold-1.14.0/editor_zip_doc.json +237 -0
  282. package/fixtures/defold-1.14.0/editor_zlib_doc.json +49 -0
  283. package/fixtures/defold-1.14.0/factory_doc.json +206 -0
  284. package/fixtures/defold-1.14.0/font_doc.json +230 -0
  285. package/fixtures/defold-1.14.0/globals_doc.json +64 -0
  286. package/fixtures/defold-1.14.0/go-instance-functions.json +106 -0
  287. package/fixtures/defold-1.14.0/go_doc.json +1789 -0
  288. package/fixtures/defold-1.14.0/graphics_doc.json +1257 -0
  289. package/fixtures/defold-1.14.0/gui_doc.json +4735 -0
  290. package/fixtures/defold-1.14.0/html5_doc.json +65 -0
  291. package/fixtures/defold-1.14.0/http_doc.json +174 -0
  292. package/fixtures/defold-1.14.0/image_doc.json +298 -0
  293. package/fixtures/defold-1.14.0/import-manifest.json +10260 -0
  294. package/fixtures/defold-1.14.0/io_doc.json +400 -0
  295. package/fixtures/defold-1.14.0/json_doc.json +140 -0
  296. package/fixtures/defold-1.14.0/label_doc.json +427 -0
  297. package/fixtures/defold-1.14.0/liveupdate_doc.json +221 -0
  298. package/fixtures/defold-1.14.0/material_doc.json +773 -0
  299. package/fixtures/defold-1.14.0/math_doc.json +703 -0
  300. package/fixtures/defold-1.14.0/model_doc.json +472 -0
  301. package/fixtures/defold-1.14.0/msg_doc.json +169 -0
  302. package/fixtures/defold-1.14.0/os_doc.json +269 -0
  303. package/fixtures/defold-1.14.0/package_doc.json +140 -0
  304. package/fixtures/defold-1.14.0/particlefx_doc.json +249 -0
  305. package/fixtures/defold-1.14.0/physics_doc.json +1624 -0
  306. package/fixtures/defold-1.14.0/profiler_doc.json +348 -0
  307. package/fixtures/defold-1.14.0/render_doc.json +1628 -0
  308. package/fixtures/defold-1.14.0/resource_doc.json +1539 -0
  309. package/fixtures/defold-1.14.0/socket_doc.json +2335 -0
  310. package/fixtures/defold-1.14.0/sound_doc.json +673 -0
  311. package/fixtures/defold-1.14.0/sprite_doc.json +364 -0
  312. package/fixtures/defold-1.14.0/string_doc.json +413 -0
  313. package/fixtures/defold-1.14.0/sys_doc.json +1347 -0
  314. package/fixtures/defold-1.14.0/table_doc.json +167 -0
  315. package/fixtures/defold-1.14.0/tilemap_doc.json +369 -0
  316. package/fixtures/defold-1.14.0/timer_doc.json +214 -0
  317. package/fixtures/defold-1.14.0/types_doc.json +213 -0
  318. package/fixtures/defold-1.14.0/vmath_doc.json +2056 -0
  319. package/fixtures/defold-1.14.0/window_doc.json +426 -0
  320. package/fixtures/defold-1.14.0/zlib_doc.json +71 -0
  321. package/generated/b2d.d.ts +39 -39
  322. package/generated/b2d_body.d.ts +11 -11
  323. package/generated/b2d_chain.d.ts +3 -3
  324. package/generated/b2d_fixture.d.ts +5 -5
  325. package/generated/b2d_joint.d.ts +29 -29
  326. package/generated/b2d_shape.d.ts +13 -13
  327. package/generated/b2d_world.d.ts +15 -15
  328. package/generated/buffer.d.ts +5 -6
  329. package/generated/bullet3d.d.ts +6 -6
  330. package/generated/bullet3d_collision_object.d.ts +9 -9
  331. package/generated/bullet3d_constraint.d.ts +78 -78
  332. package/generated/bullet3d_rigid_body.d.ts +3 -3
  333. package/generated/bullet3d_shape.d.ts +11 -11
  334. package/generated/bullet3d_world.d.ts +20 -20
  335. package/generated/camera.d.ts +4 -4
  336. package/generated/collectionfactory.d.ts +2 -3
  337. package/generated/collectionproxy.d.ts +5 -5
  338. package/generated/compute.d.ts +5 -5
  339. package/generated/crash.d.ts +7 -7
  340. package/generated/editor-vm/http.d.ts +13 -13
  341. package/generated/editor-vm/image.d.ts +4 -4
  342. package/generated/editor-vm/json.d.ts +1 -1
  343. package/generated/editor-vm/tilemap_tiles.d.ts +9 -9
  344. package/generated/editor-vm/zip.d.ts +4 -4
  345. package/generated/editor.d.ts +183 -183
  346. package/generated/factory.d.ts +2 -3
  347. package/generated/font.d.ts +4 -4
  348. package/generated/go.d.ts +10 -12
  349. package/generated/graphics.d.ts +23 -26
  350. package/generated/gui.d.ts +44 -58
  351. package/generated/http.d.ts +2 -2
  352. package/generated/image.d.ts +12 -12
  353. package/generated/json.d.ts +4 -4
  354. package/generated/label.d.ts +5 -5
  355. package/generated/liveupdate.d.ts +3 -3
  356. package/generated/material.d.ts +48 -48
  357. package/generated/model.d.ts +46 -14
  358. package/generated/particlefx.d.ts +5 -5
  359. package/generated/physics.d.ts +19 -19
  360. package/generated/profiler.d.ts +3 -5
  361. package/generated/render-script-modules/b2d.d.ts +39 -39
  362. package/generated/render-script-modules/bullet3d.d.ts +5 -5
  363. package/generated/render-script-modules/collectionfactory.d.ts +1 -2
  364. package/generated/render-script-modules/collectionproxy.d.ts +3 -3
  365. package/generated/render-script-modules/factory.d.ts +1 -2
  366. package/generated/render-script-modules/go.d.ts +8 -10
  367. package/generated/render-script-modules/label.d.ts +2 -2
  368. package/generated/render-script-modules/model.d.ts +43 -11
  369. package/generated/render-script-modules/particlefx.d.ts +3 -3
  370. package/generated/render-script-modules/physics.d.ts +12 -12
  371. package/generated/render-script-modules/resource.d.ts +52 -53
  372. package/generated/render-script-modules/sound.d.ts +4 -4
  373. package/generated/render-script-modules/sprite.d.ts +2 -2
  374. package/generated/render-script-modules/tilemap.d.ts +2 -2
  375. package/generated/render.d.ts +44 -45
  376. package/generated/resource.d.ts +58 -59
  377. package/generated/socket.d.ts +18 -23
  378. package/generated/sound.d.ts +6 -6
  379. package/generated/sprite.d.ts +3 -3
  380. package/generated/sys.d.ts +20 -21
  381. package/generated/tilemap.d.ts +3 -3
  382. package/generated/timer.d.ts +3 -3
  383. package/generated/versions/defold-1.12.4/b2d.d.ts +2 -2
  384. package/generated/versions/defold-1.12.4/b2d_body.d.ts +2 -2
  385. package/generated/versions/defold-1.12.4/go.d.ts +2 -2
  386. package/generated/versions/defold-1.12.4/graphics.d.ts +1 -1
  387. package/generated/versions/defold-1.12.4/gui.d.ts +18 -19
  388. package/generated/versions/defold-1.12.4/label.d.ts +1 -1
  389. package/generated/versions/defold-1.12.4/model.d.ts +42 -10
  390. package/generated/versions/defold-1.12.4/particlefx.d.ts +1 -1
  391. package/generated/versions/defold-1.12.4/physics.d.ts +1 -1
  392. package/generated/versions/defold-1.12.4/render.d.ts +5 -5
  393. package/generated/versions/defold-1.12.4/resource.d.ts +8 -8
  394. package/generated/versions/defold-1.12.4/socket.d.ts +12 -12
  395. package/generated/versions/defold-1.12.4/sound.d.ts +1 -1
  396. package/generated/versions/defold-1.12.4/sprite.d.ts +1 -1
  397. package/generated/versions/defold-1.12.4/sys.d.ts +2 -2
  398. package/generated/versions/defold-1.12.4/tilemap.d.ts +1 -1
  399. package/generated/versions/defold-1.12.4/window.d.ts +3 -4
  400. package/generated/versions/defold-1.13.0/b2d.d.ts +2 -2
  401. package/generated/versions/defold-1.13.0/b2d_body.d.ts +2 -2
  402. package/generated/versions/defold-1.13.0/b2d_chain.d.ts +1 -1
  403. package/generated/versions/defold-1.13.0/b2d_joint.d.ts +1 -1
  404. package/generated/versions/defold-1.13.0/b2d_shape.d.ts +1 -1
  405. package/generated/versions/defold-1.13.0/camera.d.ts +1 -1
  406. package/generated/versions/defold-1.13.0/go.d.ts +2 -2
  407. package/generated/versions/defold-1.13.0/graphics.d.ts +1 -1
  408. package/generated/versions/defold-1.13.0/gui.d.ts +18 -19
  409. package/generated/versions/defold-1.13.0/label.d.ts +1 -1
  410. package/generated/versions/defold-1.13.0/model.d.ts +42 -10
  411. package/generated/versions/defold-1.13.0/particlefx.d.ts +1 -1
  412. package/generated/versions/defold-1.13.0/physics.d.ts +1 -1
  413. package/generated/versions/defold-1.13.0/render.d.ts +5 -5
  414. package/generated/versions/defold-1.13.0/resource.d.ts +8 -8
  415. package/generated/versions/defold-1.13.0/socket.d.ts +12 -12
  416. package/generated/versions/defold-1.13.0/sound.d.ts +1 -1
  417. package/generated/versions/defold-1.13.0/sprite.d.ts +1 -1
  418. package/generated/versions/defold-1.13.0/sys.d.ts +2 -2
  419. package/generated/versions/defold-1.13.0/tilemap.d.ts +1 -1
  420. package/generated/versions/defold-1.13.0/window.d.ts +3 -4
  421. package/generated/versions/defold-1.13.1/b2d.d.ts +2 -2
  422. package/generated/versions/defold-1.13.1/b2d_body.d.ts +2 -2
  423. package/generated/versions/defold-1.13.1/b2d_chain.d.ts +1 -1
  424. package/generated/versions/defold-1.13.1/b2d_joint.d.ts +1 -1
  425. package/generated/versions/defold-1.13.1/b2d_shape.d.ts +1 -1
  426. package/generated/versions/defold-1.13.1/camera.d.ts +1 -1
  427. package/generated/versions/defold-1.13.1/go.d.ts +2 -2
  428. package/generated/versions/defold-1.13.1/graphics.d.ts +1 -1
  429. package/generated/versions/defold-1.13.1/gui.d.ts +18 -19
  430. package/generated/versions/defold-1.13.1/label.d.ts +1 -1
  431. package/generated/versions/defold-1.13.1/model.d.ts +42 -10
  432. package/generated/versions/defold-1.13.1/particlefx.d.ts +1 -1
  433. package/generated/versions/defold-1.13.1/physics.d.ts +1 -1
  434. package/generated/versions/defold-1.13.1/render.d.ts +5 -5
  435. package/generated/versions/defold-1.13.1/resource.d.ts +8 -8
  436. package/generated/versions/defold-1.13.1/socket.d.ts +12 -12
  437. package/generated/versions/defold-1.13.1/sound.d.ts +1 -1
  438. package/generated/versions/defold-1.13.1/sprite.d.ts +1 -1
  439. package/generated/versions/defold-1.13.1/sys.d.ts +2 -2
  440. package/generated/versions/defold-1.13.1/tilemap.d.ts +1 -1
  441. package/generated/versions/defold-1.13.1/window.d.ts +3 -4
  442. package/generated/versions/defold-1.13.2/b2d.d.ts +39 -39
  443. package/generated/versions/defold-1.13.2/b2d_body.d.ts +11 -11
  444. package/generated/versions/defold-1.13.2/b2d_chain.d.ts +3 -3
  445. package/generated/versions/defold-1.13.2/b2d_fixture.d.ts +5 -5
  446. package/generated/versions/defold-1.13.2/b2d_joint.d.ts +29 -29
  447. package/generated/versions/defold-1.13.2/b2d_shape.d.ts +13 -13
  448. package/generated/versions/defold-1.13.2/b2d_world.d.ts +15 -15
  449. package/generated/versions/defold-1.13.2/buffer.d.ts +5 -6
  450. package/generated/versions/defold-1.13.2/bullet3d.d.ts +6 -6
  451. package/generated/versions/defold-1.13.2/bullet3d_collision_object.d.ts +9 -9
  452. package/generated/versions/defold-1.13.2/bullet3d_constraint.d.ts +78 -78
  453. package/generated/versions/defold-1.13.2/bullet3d_rigid_body.d.ts +3 -3
  454. package/generated/versions/defold-1.13.2/bullet3d_shape.d.ts +11 -11
  455. package/generated/versions/defold-1.13.2/bullet3d_world.d.ts +20 -20
  456. package/generated/versions/defold-1.13.2/camera.d.ts +4 -4
  457. package/generated/versions/defold-1.13.2/collectionfactory.d.ts +2 -3
  458. package/generated/versions/defold-1.13.2/collectionproxy.d.ts +5 -5
  459. package/generated/versions/defold-1.13.2/compute.d.ts +5 -5
  460. package/generated/versions/defold-1.13.2/crash.d.ts +7 -7
  461. package/generated/versions/defold-1.13.2/editor-vm/http.d.ts +13 -13
  462. package/generated/versions/defold-1.13.2/editor-vm/image.d.ts +4 -4
  463. package/generated/versions/defold-1.13.2/editor-vm/json.d.ts +1 -1
  464. package/generated/versions/defold-1.13.2/editor-vm/tilemap_tiles.d.ts +9 -9
  465. package/generated/versions/defold-1.13.2/editor-vm/zip.d.ts +4 -4
  466. package/generated/versions/defold-1.13.2/editor.d.ts +183 -183
  467. package/generated/versions/defold-1.13.2/factory.d.ts +2 -3
  468. package/generated/versions/defold-1.13.2/font.d.ts +4 -4
  469. package/generated/versions/defold-1.13.2/go.d.ts +10 -12
  470. package/generated/versions/defold-1.13.2/graphics.d.ts +22 -25
  471. package/generated/versions/defold-1.13.2/gui.d.ts +44 -58
  472. package/generated/versions/defold-1.13.2/http.d.ts +2 -2
  473. package/generated/versions/defold-1.13.2/image.d.ts +12 -12
  474. package/generated/versions/defold-1.13.2/json.d.ts +4 -4
  475. package/generated/versions/defold-1.13.2/label.d.ts +5 -5
  476. package/generated/versions/defold-1.13.2/liveupdate.d.ts +3 -3
  477. package/generated/versions/defold-1.13.2/material.d.ts +48 -48
  478. package/generated/versions/defold-1.13.2/model.d.ts +46 -14
  479. package/generated/versions/defold-1.13.2/particlefx.d.ts +5 -5
  480. package/generated/versions/defold-1.13.2/physics.d.ts +19 -19
  481. package/generated/versions/defold-1.13.2/profiler.d.ts +3 -5
  482. package/generated/versions/defold-1.13.2/render.d.ts +43 -44
  483. package/generated/versions/defold-1.13.2/resource.d.ts +58 -59
  484. package/generated/versions/defold-1.13.2/socket.d.ts +18 -23
  485. package/generated/versions/defold-1.13.2/sound.d.ts +6 -6
  486. package/generated/versions/defold-1.13.2/sprite.d.ts +3 -3
  487. package/generated/versions/defold-1.13.2/sys.d.ts +20 -21
  488. package/generated/versions/defold-1.13.2/tilemap.d.ts +3 -3
  489. package/generated/versions/defold-1.13.2/timer.d.ts +3 -3
  490. package/generated/versions/defold-1.13.2/vmath.d.ts +0 -1
  491. package/generated/versions/defold-1.13.2/window.d.ts +8 -10
  492. package/generated/vmath.d.ts +0 -1
  493. package/generated/window.d.ts +8 -10
  494. package/identity-vocabulary.json +41 -34
  495. package/package.json +13 -5
  496. package/scripts/cli-runtime.ts +18 -0
  497. package/scripts/example-store-io.ts +2 -2
  498. package/scripts/extension-goldens.ts +9 -5
  499. package/scripts/generate-api-availability.ts +10 -4
  500. package/scripts/generate-api-signatures.ts +1 -1
  501. package/scripts/import-defold-release.ts +1 -1
  502. package/scripts/regen.ts +35 -9
  503. package/scripts/shared-handle-methods.ts +3 -2
  504. package/scripts/signature-store-fs.ts +37 -17
  505. package/scripts/sync-api-docs.ts +127 -20
  506. package/src/api-doc.ts +19 -4
  507. package/src/api-identity.ts +32 -1
  508. package/src/component-properties.d.ts +8 -8
  509. package/src/core-types.ts +29 -13
  510. package/src/doc-corrections.ts +9 -0
  511. package/src/emit-dts.ts +770 -214
  512. package/src/engine-type-name.ts +33 -0
  513. package/src/go-overloads.d.ts +10 -10
  514. package/src/gui-overloads.d.ts +11 -11
  515. package/src/index-slot-classifications.ts +75 -9
  516. package/src/index.ts +4 -1
  517. package/src/lifecycle.ts +2 -2
  518. package/src/publish-dts.ts +16 -0
  519. package/src/script-api.ts +36 -38
  520. package/src/socket-types.d.ts +3 -3
  521. package/src/library-index-slot-classifications.ts +0 -332
@@ -0,0 +1,855 @@
1
+ {
2
+ "elements": [
3
+ {
4
+ "type": "STRUCT",
5
+ "name": "bullet3d.world.aabb",
6
+ "brief": "Bullet world axis-aligned bounding box",
7
+ "description": "Bullet world axis-aligned bounding box",
8
+ "returnvalues": [],
9
+ "parameters": [],
10
+ "examples": "",
11
+ "replaces": "",
12
+ "error": "",
13
+ "tparams": [],
14
+ "members": [
15
+ {
16
+ "name": "lower",
17
+ "doc": "lower world-space bound in Defold units",
18
+ "type": "vector3"
19
+ },
20
+ {
21
+ "name": "upper",
22
+ "doc": "upper world-space bound in Defold units",
23
+ "type": "vector3"
24
+ }
25
+ ],
26
+ "notes": [],
27
+ "language": ""
28
+ },
29
+ {
30
+ "type": "STRUCT",
31
+ "name": "bullet3d.world.query_filter",
32
+ "brief": "Bullet world query filter",
33
+ "description": "Bullet world query filter",
34
+ "returnvalues": [],
35
+ "parameters": [],
36
+ "examples": "",
37
+ "replaces": "",
38
+ "error": "",
39
+ "tparams": [],
40
+ "members": [
41
+ {
42
+ "name": "category_bits?",
43
+ "doc": "unsigned 16-bit category bits; defaults to <code>65535</code>",
44
+ "type": "integer"
45
+ },
46
+ {
47
+ "name": "mask_bits?",
48
+ "doc": "unsigned 16-bit mask bits; defaults to <code>65535</code>",
49
+ "type": "integer"
50
+ },
51
+ {
52
+ "name": "include_triggers?",
53
+ "doc": "whether to include objects without contact response; defaults to <code>true</code>",
54
+ "type": "boolean"
55
+ },
56
+ {
57
+ "name": "ignore?",
58
+ "doc": "one collision object or an array of collision objects to exclude",
59
+ "type": "btCollisionObject|btCollisionObject[]"
60
+ },
61
+ {
62
+ "name": "report_initial_overlaps?",
63
+ "doc": "whether casts synthesize fraction-zero hits for initial overlaps; defaults to <code>false</code>",
64
+ "type": "boolean"
65
+ }
66
+ ],
67
+ "notes": [],
68
+ "language": ""
69
+ },
70
+ {
71
+ "type": "STRUCT",
72
+ "name": "bullet3d.world.cast_result",
73
+ "brief": "Bullet world cast result",
74
+ "description": "Bullet world cast result",
75
+ "returnvalues": [],
76
+ "parameters": [],
77
+ "examples": "",
78
+ "replaces": "",
79
+ "error": "",
80
+ "tparams": [],
81
+ "members": [
82
+ {
83
+ "name": "object",
84
+ "doc": "hit collision object",
85
+ "type": "btCollisionObject"
86
+ },
87
+ {
88
+ "name": "point",
89
+ "doc": "hit point in world space and Defold units",
90
+ "type": "vector3"
91
+ },
92
+ {
93
+ "name": "normal",
94
+ "doc": "outward unit surface normal",
95
+ "type": "vector3"
96
+ },
97
+ {
98
+ "name": "fraction",
99
+ "doc": "fraction along the supplied translation in <code>[0, 1]</code>",
100
+ "type": "number"
101
+ },
102
+ {
103
+ "name": "shape_index?",
104
+ "doc": "one-based compound child index",
105
+ "type": "integer"
106
+ },
107
+ {
108
+ "name": "initial_overlap",
109
+ "doc": "whether the hit was synthesized from an initial overlap",
110
+ "type": "boolean"
111
+ },
112
+ {
113
+ "name": "inside",
114
+ "doc": "whether a synthesized ray-origin hit starts inside the object",
115
+ "type": "boolean"
116
+ }
117
+ ],
118
+ "notes": [],
119
+ "language": ""
120
+ },
121
+ {
122
+ "type": "STRUCT",
123
+ "name": "bullet3d.world.contact_result",
124
+ "brief": "Bullet world contact result",
125
+ "description": "Bullet world contact result",
126
+ "returnvalues": [],
127
+ "parameters": [],
128
+ "examples": "",
129
+ "replaces": "",
130
+ "error": "",
131
+ "tparams": [],
132
+ "members": [
133
+ {
134
+ "name": "object_a",
135
+ "doc": "first collision object",
136
+ "type": "btCollisionObject"
137
+ },
138
+ {
139
+ "name": "object_b",
140
+ "doc": "second collision object",
141
+ "type": "btCollisionObject"
142
+ },
143
+ {
144
+ "name": "position_a",
145
+ "doc": "contact point on object A in world space and Defold units",
146
+ "type": "vector3"
147
+ },
148
+ {
149
+ "name": "position_b",
150
+ "doc": "contact point on object B in world space and Defold units",
151
+ "type": "vector3"
152
+ },
153
+ {
154
+ "name": "normal_on_b",
155
+ "doc": "unit normal pointing from object B toward object A",
156
+ "type": "vector3"
157
+ },
158
+ {
159
+ "name": "distance",
160
+ "doc": "signed contact distance in Defold units",
161
+ "type": "number"
162
+ }
163
+ ],
164
+ "notes": [],
165
+ "language": ""
166
+ },
167
+ {
168
+ "type": "FUNCTION",
169
+ "name": "bullet3d.world.is_valid",
170
+ "brief": "Test whether a world handle is valid",
171
+ "description": "Test whether a world handle is valid",
172
+ "returnvalues": [
173
+ {
174
+ "name": "valid",
175
+ "doc": "<code>true</code> if the native world still exists",
176
+ "types": ["boolean"]
177
+ }
178
+ ],
179
+ "parameters": [
180
+ {
181
+ "name": "world",
182
+ "doc": "world handle",
183
+ "types": ["btDiscreteDynamicsWorld"],
184
+ "is_optional": "False"
185
+ }
186
+ ],
187
+ "examples": "",
188
+ "replaces": "",
189
+ "error": "",
190
+ "tparams": [],
191
+ "members": [],
192
+ "notes": [],
193
+ "language": ""
194
+ },
195
+ {
196
+ "type": "FUNCTION",
197
+ "name": "bullet3d.world.get_gravity",
198
+ "brief": "Get world gravity",
199
+ "description": "Get world gravity",
200
+ "returnvalues": [
201
+ {
202
+ "name": "gravity",
203
+ "doc": "gravity in Defold units per second squared",
204
+ "types": ["vector3"]
205
+ }
206
+ ],
207
+ "parameters": [
208
+ {
209
+ "name": "world",
210
+ "doc": "world handle",
211
+ "types": ["btDiscreteDynamicsWorld"],
212
+ "is_optional": "False"
213
+ }
214
+ ],
215
+ "examples": "",
216
+ "replaces": "",
217
+ "error": "",
218
+ "tparams": [],
219
+ "members": [],
220
+ "notes": [],
221
+ "language": ""
222
+ },
223
+ {
224
+ "type": "FUNCTION",
225
+ "name": "bullet3d.world.set_gravity",
226
+ "brief": "Set world gravity",
227
+ "description": "Bullet propagates the new value to active dynamic bodies unless they have\n<code>bullet3d.rigid_body.BT_DISABLE_WORLD_GRAVITY</code> set. Such bodies retain their\ncustom body gravity.",
228
+ "returnvalues": [],
229
+ "parameters": [
230
+ {
231
+ "name": "world",
232
+ "doc": "world handle",
233
+ "types": ["btDiscreteDynamicsWorld"],
234
+ "is_optional": "False"
235
+ },
236
+ {
237
+ "name": "gravity",
238
+ "doc": "finite gravity in Defold units per second squared",
239
+ "types": ["vector3"],
240
+ "is_optional": "False"
241
+ }
242
+ ],
243
+ "examples": "Set gravity for the current collection's physics world:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">world</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_world</span><span class=\"p\">()</span>\n <span class=\"kr\">if</span> <span class=\"n\">world</span> <span class=\"kr\">then</span>\n <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">world</span><span class=\"p\">.</span><span class=\"n\">set_gravity</span><span class=\"p\">(</span><span class=\"n\">world</span><span class=\"p\">,</span> <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=\"o\">-</span><span class=\"mf\">9.81</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">))</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
244
+ "replaces": "",
245
+ "error": "",
246
+ "tparams": [],
247
+ "members": [],
248
+ "notes": [],
249
+ "language": ""
250
+ },
251
+ {
252
+ "type": "FUNCTION",
253
+ "name": "bullet3d.world.get_collision_object_count",
254
+ "brief": "Get the number of collision objects in the world",
255
+ "description": "Get the number of collision objects in the world",
256
+ "returnvalues": [
257
+ {
258
+ "name": "count",
259
+ "doc": "number of collision objects",
260
+ "types": ["integer"]
261
+ }
262
+ ],
263
+ "parameters": [
264
+ {
265
+ "name": "world",
266
+ "doc": "world handle",
267
+ "types": ["btDiscreteDynamicsWorld"],
268
+ "is_optional": "False"
269
+ }
270
+ ],
271
+ "examples": "",
272
+ "replaces": "",
273
+ "error": "",
274
+ "tparams": [],
275
+ "members": [],
276
+ "notes": [],
277
+ "language": ""
278
+ },
279
+ {
280
+ "type": "FUNCTION",
281
+ "name": "bullet3d.world.get_collision_objects",
282
+ "brief": "Enumerate collision objects",
283
+ "description": "Returns the Defold-owned collision objects currently registered in the world.\nInternal or unmanaged Bullet objects without Defold ownership metadata are\nnot exposed.",
284
+ "returnvalues": [
285
+ {
286
+ "name": "objects",
287
+ "doc": "array of collision-object handles",
288
+ "types": ["btCollisionObject[]"]
289
+ }
290
+ ],
291
+ "parameters": [
292
+ {
293
+ "name": "world",
294
+ "doc": "world handle",
295
+ "types": ["btDiscreteDynamicsWorld"],
296
+ "is_optional": "False"
297
+ },
298
+ {
299
+ "name": "max_results",
300
+ "doc": "maximum number of results, or zero for all",
301
+ "types": ["integer"],
302
+ "is_optional": "True"
303
+ }
304
+ ],
305
+ "examples": "",
306
+ "replaces": "",
307
+ "error": "",
308
+ "tparams": [],
309
+ "members": [],
310
+ "notes": [],
311
+ "language": ""
312
+ },
313
+ {
314
+ "type": "FUNCTION",
315
+ "name": "bullet3d.world.overlap_aabb",
316
+ "brief": "Find broadphase AABB overlaps",
317
+ "description": "Finds collision objects whose Bullet broadphase bounds overlap the supplied\nworld-space AABB. This is intentionally a broadphase query and can include\nobjects whose actual collision geometry does not intersect the box. Use\n<a href=\"#bullet3d\">bullet3d.world.overlap_point</a> or\n<a href=\"#bullet3d\">bullet3d.world.overlap_shape</a> for exact narrow-phase overlap tests.",
318
+ "returnvalues": [
319
+ {
320
+ "name": "objects",
321
+ "doc": "array of overlapping collision-object handles",
322
+ "types": ["btCollisionObject[]"]
323
+ }
324
+ ],
325
+ "parameters": [
326
+ {
327
+ "name": "world",
328
+ "doc": "world handle",
329
+ "types": ["btDiscreteDynamicsWorld"],
330
+ "is_optional": "False"
331
+ },
332
+ {
333
+ "name": "aabb",
334
+ "doc": "world-space bounds",
335
+ "types": ["bullet3d.world.aabb"],
336
+ "is_optional": "False"
337
+ },
338
+ {
339
+ "name": "filter",
340
+ "doc": "query filter",
341
+ "types": ["bullet3d.world.query_filter"],
342
+ "is_optional": "True"
343
+ },
344
+ {
345
+ "name": "max_results",
346
+ "doc": "maximum number of results, or zero for all",
347
+ "types": ["integer"],
348
+ "is_optional": "True"
349
+ }
350
+ ],
351
+ "examples": "",
352
+ "replaces": "",
353
+ "error": "",
354
+ "tparams": [],
355
+ "members": [],
356
+ "notes": [],
357
+ "language": ""
358
+ },
359
+ {
360
+ "type": "FUNCTION",
361
+ "name": "bullet3d.world.overlap_point",
362
+ "brief": "Find collision objects containing a point",
363
+ "description": "Performs an exact narrow-phase test using a temporary zero-radius Bullet\nsphere at the world-space point. A result is returned only for a contact with\nsigned distance less than or equal to zero, so broadphase-only false positives\nare removed. Results on an exact surface follow Bullet's contact tolerance.",
364
+ "returnvalues": [
365
+ {
366
+ "name": "objects",
367
+ "doc": "array of overlapping collision-object handles",
368
+ "types": ["btCollisionObject[]"]
369
+ }
370
+ ],
371
+ "parameters": [
372
+ {
373
+ "name": "world",
374
+ "doc": "world handle",
375
+ "types": ["btDiscreteDynamicsWorld"],
376
+ "is_optional": "False"
377
+ },
378
+ {
379
+ "name": "point",
380
+ "doc": "point in world space",
381
+ "types": ["vector3"],
382
+ "is_optional": "False"
383
+ },
384
+ {
385
+ "name": "filter",
386
+ "doc": "query filter",
387
+ "types": ["bullet3d.world.query_filter"],
388
+ "is_optional": "True"
389
+ },
390
+ {
391
+ "name": "max_results",
392
+ "doc": "maximum number of results, or zero for all",
393
+ "types": ["integer"],
394
+ "is_optional": "True"
395
+ }
396
+ ],
397
+ "examples": "",
398
+ "replaces": "",
399
+ "error": "",
400
+ "tparams": [],
401
+ "members": [],
402
+ "notes": [],
403
+ "language": ""
404
+ },
405
+ {
406
+ "type": "FUNCTION",
407
+ "name": "bullet3d.world.overlap_shape",
408
+ "brief": "Find collision objects overlapping a convex shape",
409
+ "description": "Performs an exact Bullet contact test for a temporary sphere, box, Y-axis\ncapsule, or convex hull. Multiple native contact points for the same target\nobject are deduplicated in the returned overlap array.",
410
+ "returnvalues": [
411
+ {
412
+ "name": "objects",
413
+ "doc": "array of overlapping collision-object handles",
414
+ "types": ["btCollisionObject[]"]
415
+ }
416
+ ],
417
+ "parameters": [
418
+ {
419
+ "name": "world",
420
+ "doc": "world handle",
421
+ "types": ["btDiscreteDynamicsWorld"],
422
+ "is_optional": "False"
423
+ },
424
+ {
425
+ "name": "shape",
426
+ "doc": "convex query shape",
427
+ "types": ["bullet3d.shape.definition"],
428
+ "is_optional": "False"
429
+ },
430
+ {
431
+ "name": "filter",
432
+ "doc": "query filter",
433
+ "types": ["bullet3d.world.query_filter"],
434
+ "is_optional": "True"
435
+ },
436
+ {
437
+ "name": "max_results",
438
+ "doc": "maximum number of results, or zero for all",
439
+ "types": ["integer"],
440
+ "is_optional": "True"
441
+ }
442
+ ],
443
+ "examples": "Find non-trigger objects overlapping a two-unit sphere around this game object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">world</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_world</span><span class=\"p\">()</span>\n <span class=\"kd\">local</span> <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\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">shape</span><span class=\"p\">.</span><span class=\"n\">SHAPE_TYPE_SPHERE</span><span class=\"p\">,</span>\n <span class=\"n\">diameter</span> <span class=\"o\">=</span> <span class=\"mi\">2</span><span class=\"p\">,</span>\n <span class=\"n\">position</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">(),</span>\n <span class=\"p\">}</span>\n <span class=\"kd\">local</span> <span class=\"n\">filter</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">include_triggers</span> <span class=\"o\">=</span> <span class=\"kc\">false</span> <span class=\"p\">}</span>\n <span class=\"kd\">local</span> <span class=\"n\">overlaps</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">world</span><span class=\"p\">.</span><span class=\"n\">overlap_shape</span><span class=\"p\">(</span><span class=\"n\">world</span><span class=\"p\">,</span> <span class=\"n\">shape</span><span class=\"p\">,</span> <span class=\"n\">filter</span><span class=\"p\">)</span>\n\n <span class=\"kr\">for</span> <span class=\"n\">_</span><span class=\"p\">,</span> <span class=\"n\">object</span> <span class=\"kr\">in</span> <span class=\"nb\">ipairs</span><span class=\"p\">(</span><span class=\"n\">overlaps</span><span class=\"p\">)</span> <span class=\"kr\">do</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">&quot;overlap&quot;</span><span class=\"p\">,</span> <span class=\"n\">object</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
444
+ "replaces": "",
445
+ "error": "",
446
+ "tparams": [],
447
+ "members": [],
448
+ "notes": [],
449
+ "language": ""
450
+ },
451
+ {
452
+ "type": "FUNCTION",
453
+ "name": "bullet3d.world.cast_ray",
454
+ "brief": "Cast a ray",
455
+ "description": "Casts immediately from <code>origin</code> to <code>origin + translation</code> and returns all\nmatching hits sorted by fraction. Translation must be non-zero.\nBullet's convex ray test normally does not report a ray whose start and end are both inside\nthe same convex hull. Set <code>filter.report_initial_overlaps = true</code> to perform\nan exact point-overlap test at the origin and synthesize one deduplicated hit\nper initially touching or overlapping object with <code>fraction = 0</code>, zero <code>normal</code>,\n<code>point = origin</code>, <code>initial_overlap = true</code>, and <code>inside = true</code>. The point is\nthe query origin, not a surface contact. This explicitly supports the\ninside-hull behavior requested by issue #5348. Fraction-zero native callbacks\nand starting overlaps are suppressed when the option is false.",
456
+ "returnvalues": [
457
+ {
458
+ "name": "hits",
459
+ "doc": "cast results sorted by ascending fraction",
460
+ "types": ["bullet3d.world.cast_result[]"]
461
+ }
462
+ ],
463
+ "parameters": [
464
+ {
465
+ "name": "world",
466
+ "doc": "world handle",
467
+ "types": ["btDiscreteDynamicsWorld"],
468
+ "is_optional": "False"
469
+ },
470
+ {
471
+ "name": "origin",
472
+ "doc": "ray origin in world space",
473
+ "types": ["vector3"],
474
+ "is_optional": "False"
475
+ },
476
+ {
477
+ "name": "translation",
478
+ "doc": "non-zero ray displacement in world units",
479
+ "types": ["vector3"],
480
+ "is_optional": "False"
481
+ },
482
+ {
483
+ "name": "filter",
484
+ "doc": "query filter",
485
+ "types": ["bullet3d.world.query_filter"],
486
+ "is_optional": "True"
487
+ },
488
+ {
489
+ "name": "max_results",
490
+ "doc": "maximum sorted hits, or zero for all",
491
+ "types": ["integer"],
492
+ "is_optional": "True"
493
+ }
494
+ ],
495
+ "examples": "",
496
+ "replaces": "",
497
+ "error": "",
498
+ "tparams": [],
499
+ "members": [],
500
+ "notes": [],
501
+ "language": ""
502
+ },
503
+ {
504
+ "type": "FUNCTION",
505
+ "name": "bullet3d.world.cast_ray_closest",
506
+ "brief": "Cast a ray and return the closest hit",
507
+ "description": "Equivalent to <a href=\"#bullet3d\">bullet3d.world.cast_ray</a> with one result, but returns the\nhit table directly or <code>nil</code> on a miss.",
508
+ "returnvalues": [
509
+ {
510
+ "name": "hit",
511
+ "doc": "closest cast result, or <code>nil</code> on a miss",
512
+ "types": ["bullet3d.world.cast_result", "nil"]
513
+ }
514
+ ],
515
+ "parameters": [
516
+ {
517
+ "name": "world",
518
+ "doc": "world handle",
519
+ "types": ["btDiscreteDynamicsWorld"],
520
+ "is_optional": "False"
521
+ },
522
+ {
523
+ "name": "origin",
524
+ "doc": "ray origin in world space",
525
+ "types": ["vector3"],
526
+ "is_optional": "False"
527
+ },
528
+ {
529
+ "name": "translation",
530
+ "doc": "non-zero ray displacement in world units",
531
+ "types": ["vector3"],
532
+ "is_optional": "False"
533
+ },
534
+ {
535
+ "name": "filter",
536
+ "doc": "query filter",
537
+ "types": ["bullet3d.world.query_filter"],
538
+ "is_optional": "True"
539
+ }
540
+ ],
541
+ "examples": "Cast downward and report the closest non-trigger hit:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">init</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">world</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_world</span><span class=\"p\">()</span>\n <span class=\"kd\">local</span> <span class=\"n\">origin</span> <span class=\"o\">=</span> <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</span><span class=\"p\">()</span>\n <span class=\"kd\">local</span> <span class=\"n\">translation</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\">0</span><span class=\"p\">,</span> <span class=\"o\">-</span><span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">filter</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">include_triggers</span> <span class=\"o\">=</span> <span class=\"kc\">false</span> <span class=\"p\">}</span>\n\n <span class=\"kd\">local</span> <span class=\"n\">hit</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">world</span><span class=\"p\">.</span><span class=\"n\">cast_ray_closest</span><span class=\"p\">(</span>\n <span class=\"n\">world</span><span class=\"p\">,</span> <span class=\"n\">origin</span><span class=\"p\">,</span> <span class=\"n\">translation</span><span class=\"p\">,</span> <span class=\"n\">filter</span><span class=\"p\">)</span>\n <span class=\"kr\">if</span> <span class=\"n\">hit</span> <span class=\"kr\">then</span>\n <span class=\"kd\">local</span> <span class=\"n\">distance</span> <span class=\"o\">=</span> <span class=\"n\">vmath</span><span class=\"p\">.</span><span class=\"n\">length</span><span class=\"p\">(</span><span class=\"n\">translation</span><span class=\"p\">)</span> <span class=\"o\">*</span> <span class=\"n\">hit</span><span class=\"p\">.</span><span class=\"n\">fraction</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">&quot;hit&quot;</span><span class=\"p\">,</span> <span class=\"n\">hit</span><span class=\"p\">.</span><span class=\"n\">object</span><span class=\"p\">,</span> <span class=\"s2\">&quot;after&quot;</span><span class=\"p\">,</span> <span class=\"n\">distance</span><span class=\"p\">,</span> <span class=\"s2\">&quot;units&quot;</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
542
+ "replaces": "",
543
+ "error": "",
544
+ "tparams": [],
545
+ "members": [],
546
+ "notes": [],
547
+ "language": ""
548
+ },
549
+ {
550
+ "type": "FUNCTION",
551
+ "name": "bullet3d.world.cast_ray_async",
552
+ "brief": "Cast a ray asynchronously",
553
+ "description": "Queues the same ray query as <a href=\"#bullet3d\">bullet3d.world.cast_ray</a> and returns without\nexecuting it. After the next physics step, <code>callback(self, hits)</code> receives the\ncast-result array sorted by fraction. The query observes post-step world state.\nIt is deferred on the main thread, not executed concurrently; use it to move\nwork out of the current Lua call and to query the stepped state, not as a\nguarantee of lower total CPU time. Queued casts for the same world share one\nbroadphase AABB refresh and all finish before their callbacks begin.",
554
+ "returnvalues": [],
555
+ "parameters": [
556
+ {
557
+ "name": "world",
558
+ "doc": "world handle",
559
+ "types": ["btDiscreteDynamicsWorld"],
560
+ "is_optional": "False"
561
+ },
562
+ {
563
+ "name": "origin",
564
+ "doc": "ray origin in world space",
565
+ "types": ["vector3"],
566
+ "is_optional": "False"
567
+ },
568
+ {
569
+ "name": "translation",
570
+ "doc": "non-zero ray displacement in world units",
571
+ "types": ["vector3"],
572
+ "is_optional": "False"
573
+ },
574
+ {
575
+ "name": "callback",
576
+ "doc": "function called as <code>callback(self, hits)</code>",
577
+ "types": ["fun(self:script_instance, hits:bullet3d.world.cast_result[])"],
578
+ "is_optional": "False"
579
+ },
580
+ {
581
+ "name": "filter",
582
+ "doc": "query filter",
583
+ "types": ["bullet3d.world.query_filter"],
584
+ "is_optional": "True"
585
+ },
586
+ {
587
+ "name": "max_results",
588
+ "doc": "maximum sorted hits, or zero for all",
589
+ "types": ["integer"],
590
+ "is_optional": "True"
591
+ }
592
+ ],
593
+ "examples": "Queue a downward cast and inspect only the closest non-trigger hit:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">world</span><span class=\"p\">.</span><span class=\"n\">cast_ray_async</span><span class=\"p\">(</span>\n <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_world</span><span class=\"p\">(),</span>\n <span class=\"n\">go</span><span class=\"p\">.</span><span class=\"n\">get_world_position</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=\"o\">-</span><span class=\"mi\">100</span><span class=\"p\">,</span> <span class=\"mi\">0</span><span class=\"p\">),</span>\n <span class=\"kr\">function</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">hits</span><span class=\"p\">)</span>\n <span class=\"kr\">if</span> <span class=\"n\">hits</span><span class=\"p\">[</span><span class=\"mi\">1</span><span class=\"p\">]</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">&quot;hit&quot;</span><span class=\"p\">,</span> <span class=\"n\">hits</span><span class=\"p\">[</span><span class=\"mi\">1</span><span class=\"p\">].</span><span class=\"n\">object</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n <span class=\"kr\">end</span><span class=\"p\">,</span>\n <span class=\"p\">{</span> <span class=\"n\">include_triggers</span> <span class=\"o\">=</span> <span class=\"kc\">false</span> <span class=\"p\">},</span>\n <span class=\"mi\">1</span><span class=\"p\">)</span>\n</code></pre></div>",
594
+ "replaces": "",
595
+ "error": "",
596
+ "tparams": [],
597
+ "members": [],
598
+ "notes": [],
599
+ "language": ""
600
+ },
601
+ {
602
+ "type": "FUNCTION",
603
+ "name": "bullet3d.world.cast_shape",
604
+ "brief": "Cast a convex shape",
605
+ "description": "Sweeps the temporary shape from <code>shape.position</code> by <code>translation</code>, while\ninterpolating from <code>shape.rotation</code> to <code>shape.target_rotation</code>. Translation\nmust be non-zero. The query executes immediately and returns all matching hits\nsorted by fraction. Bullet's convex sweep supports only convex query shapes.\nWhen <code>filter.report_initial_overlaps</code> is true, an exact contact test at the\nstarting transform synthesizes one deduplicated hit per overlapping object\nwith <code>fraction = 0</code>, <code>point = shape.position</code>, zero <code>normal</code>,\n<code>initial_overlap = true</code>, and <code>inside = false</code>. The point is the query-shape\norigin, not a surface contact, and the result does not report penetration depth.",
606
+ "returnvalues": [
607
+ {
608
+ "name": "hits",
609
+ "doc": "cast results sorted by ascending fraction",
610
+ "types": ["bullet3d.world.cast_result[]"]
611
+ }
612
+ ],
613
+ "parameters": [
614
+ {
615
+ "name": "world",
616
+ "doc": "world handle",
617
+ "types": ["btDiscreteDynamicsWorld"],
618
+ "is_optional": "False"
619
+ },
620
+ {
621
+ "name": "shape",
622
+ "doc": "convex query shape with optional target rotation",
623
+ "types": ["bullet3d.shape.definition"],
624
+ "is_optional": "False"
625
+ },
626
+ {
627
+ "name": "translation",
628
+ "doc": "non-zero sweep displacement in world units",
629
+ "types": ["vector3"],
630
+ "is_optional": "False"
631
+ },
632
+ {
633
+ "name": "filter",
634
+ "doc": "query filter",
635
+ "types": ["bullet3d.world.query_filter"],
636
+ "is_optional": "True"
637
+ },
638
+ {
639
+ "name": "max_results",
640
+ "doc": "maximum sorted hits, or zero for all",
641
+ "types": ["integer"],
642
+ "is_optional": "True"
643
+ }
644
+ ],
645
+ "examples": "",
646
+ "replaces": "",
647
+ "error": "",
648
+ "tparams": [],
649
+ "members": [],
650
+ "notes": [],
651
+ "language": ""
652
+ },
653
+ {
654
+ "type": "FUNCTION",
655
+ "name": "bullet3d.world.cast_shape_closest",
656
+ "brief": "Cast a convex shape and return the closest hit",
657
+ "description": "Equivalent to <a href=\"#bullet3d\">bullet3d.world.cast_shape</a> with one result, but returns\nthe hit table directly or <code>nil</code> on a miss.",
658
+ "returnvalues": [
659
+ {
660
+ "name": "hit",
661
+ "doc": "closest cast result, or <code>nil</code> on a miss",
662
+ "types": ["bullet3d.world.cast_result", "nil"]
663
+ }
664
+ ],
665
+ "parameters": [
666
+ {
667
+ "name": "world",
668
+ "doc": "world handle",
669
+ "types": ["btDiscreteDynamicsWorld"],
670
+ "is_optional": "False"
671
+ },
672
+ {
673
+ "name": "shape",
674
+ "doc": "convex query shape with optional target rotation",
675
+ "types": ["bullet3d.shape.definition"],
676
+ "is_optional": "False"
677
+ },
678
+ {
679
+ "name": "translation",
680
+ "doc": "non-zero sweep displacement in world units",
681
+ "types": ["vector3"],
682
+ "is_optional": "False"
683
+ },
684
+ {
685
+ "name": "filter",
686
+ "doc": "query filter",
687
+ "types": ["bullet3d.world.query_filter"],
688
+ "is_optional": "True"
689
+ }
690
+ ],
691
+ "examples": "",
692
+ "replaces": "",
693
+ "error": "",
694
+ "tparams": [],
695
+ "members": [],
696
+ "notes": [],
697
+ "language": ""
698
+ },
699
+ {
700
+ "type": "FUNCTION",
701
+ "name": "bullet3d.world.cast_shape_async",
702
+ "brief": "Cast a convex shape asynchronously",
703
+ "description": "Queues the same convex sweep as <a href=\"#bullet3d\">bullet3d.world.cast_shape</a> and returns\nwithout executing it. After the next physics step, <code>callback(self, hits)</code>\nreceives the sorted cast-result array from the post-step world state. The\noperation is deferred on the main thread rather than run concurrently. All\nqueued casts for one world share one broadphase AABB refresh and all finish\nbefore their callbacks begin.",
704
+ "returnvalues": [],
705
+ "parameters": [
706
+ {
707
+ "name": "world",
708
+ "doc": "world handle",
709
+ "types": ["btDiscreteDynamicsWorld"],
710
+ "is_optional": "False"
711
+ },
712
+ {
713
+ "name": "shape",
714
+ "doc": "convex query shape with optional target rotation",
715
+ "types": ["bullet3d.shape.definition"],
716
+ "is_optional": "False"
717
+ },
718
+ {
719
+ "name": "translation",
720
+ "doc": "non-zero sweep displacement in world units",
721
+ "types": ["vector3"],
722
+ "is_optional": "False"
723
+ },
724
+ {
725
+ "name": "callback",
726
+ "doc": "function called as <code>callback(self, hits)</code>",
727
+ "types": ["fun(self:script_instance, hits:bullet3d.world.cast_result[])"],
728
+ "is_optional": "False"
729
+ },
730
+ {
731
+ "name": "filter",
732
+ "doc": "query filter",
733
+ "types": ["bullet3d.world.query_filter"],
734
+ "is_optional": "True"
735
+ },
736
+ {
737
+ "name": "max_results",
738
+ "doc": "maximum sorted hits, or zero for all",
739
+ "types": ["integer"],
740
+ "is_optional": "True"
741
+ }
742
+ ],
743
+ "examples": "",
744
+ "replaces": "",
745
+ "error": "",
746
+ "tparams": [],
747
+ "members": [],
748
+ "notes": [],
749
+ "language": ""
750
+ },
751
+ {
752
+ "type": "FUNCTION",
753
+ "name": "bullet3d.world.contact_test",
754
+ "brief": "Test one collision object against the world",
755
+ "description": "Runs Bullet's discrete contact test between <code>object</code> and matching objects in\nthe same world. The supplied object is always <code>object_a</code> in returned contacts.\nThe borrowed collision-object handle must belong to <code>world</code>. Bullet may return\nseveral contact points for one object pair and may include small positive\ncontact-margin distances.",
756
+ "returnvalues": [
757
+ {
758
+ "name": "contacts",
759
+ "doc": "normalized contact results",
760
+ "types": ["bullet3d.world.contact_result[]"]
761
+ }
762
+ ],
763
+ "parameters": [
764
+ {
765
+ "name": "world",
766
+ "doc": "world handle",
767
+ "types": ["btDiscreteDynamicsWorld"],
768
+ "is_optional": "False"
769
+ },
770
+ {
771
+ "name": "object",
772
+ "doc": "collision object belonging to the world",
773
+ "types": ["btCollisionObject"],
774
+ "is_optional": "False"
775
+ },
776
+ {
777
+ "name": "filter",
778
+ "doc": "filter applied to candidate <code>object_b</code> values",
779
+ "types": ["bullet3d.world.query_filter"],
780
+ "is_optional": "True"
781
+ },
782
+ {
783
+ "name": "max_results",
784
+ "doc": "maximum number of contact points, or zero for all",
785
+ "types": ["integer"],
786
+ "is_optional": "True"
787
+ }
788
+ ],
789
+ "examples": "Inspect current contacts for this collision object:\n<div class=\"codehilite\"><pre><span></span><code><span class=\"kr\">function</span> <span class=\"nf\">update</span><span class=\"p\">(</span><span class=\"n\">self</span><span class=\"p\">,</span> <span class=\"n\">dt</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">world</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_world</span><span class=\"p\">()</span>\n <span class=\"kd\">local</span> <span class=\"n\">object</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">get_collision_object</span><span class=\"p\">(</span><span class=\"s2\">&quot;#collisionobject&quot;</span><span class=\"p\">)</span>\n <span class=\"kd\">local</span> <span class=\"n\">filter</span> <span class=\"o\">=</span> <span class=\"p\">{</span> <span class=\"n\">include_triggers</span> <span class=\"o\">=</span> <span class=\"kc\">false</span> <span class=\"p\">}</span>\n <span class=\"kd\">local</span> <span class=\"n\">contacts</span> <span class=\"o\">=</span> <span class=\"n\">bullet3d</span><span class=\"p\">.</span><span class=\"n\">world</span><span class=\"p\">.</span><span class=\"n\">contact_test</span><span class=\"p\">(</span><span class=\"n\">world</span><span class=\"p\">,</span> <span class=\"n\">object</span><span class=\"p\">,</span> <span class=\"n\">filter</span><span class=\"p\">)</span>\n\n <span class=\"kr\">for</span> <span class=\"n\">_</span><span class=\"p\">,</span> <span class=\"n\">contact</span> <span class=\"kr\">in</span> <span class=\"nb\">ipairs</span><span class=\"p\">(</span><span class=\"n\">contacts</span><span class=\"p\">)</span> <span class=\"kr\">do</span>\n <span class=\"kr\">if</span> <span class=\"n\">contact</span><span class=\"p\">.</span><span class=\"n\">distance</span> <span class=\"o\">&lt;</span> <span class=\"mi\">0</span> <span class=\"kr\">then</span>\n <span class=\"nb\">print</span><span class=\"p\">(</span><span class=\"s2\">&quot;penetration&quot;</span><span class=\"p\">,</span> <span class=\"o\">-</span><span class=\"n\">contact</span><span class=\"p\">.</span><span class=\"n\">distance</span><span class=\"p\">,</span> <span class=\"s2\">&quot;against&quot;</span><span class=\"p\">,</span> <span class=\"n\">contact</span><span class=\"p\">.</span><span class=\"n\">object_b</span><span class=\"p\">)</span>\n <span class=\"kr\">end</span>\n <span class=\"kr\">end</span>\n<span class=\"kr\">end</span>\n</code></pre></div>",
790
+ "replaces": "",
791
+ "error": "",
792
+ "tparams": [],
793
+ "members": [],
794
+ "notes": [],
795
+ "language": ""
796
+ },
797
+ {
798
+ "type": "FUNCTION",
799
+ "name": "bullet3d.world.contact_pair_test",
800
+ "brief": "Test a collision-object pair",
801
+ "description": "Runs Bullet's discrete pair contact algorithm without changing the simulation.\nBoth borrowed handles must belong to <code>world</code> and must identify different\nobjects. The output preserves the caller's A/B order even when Bullet's\ninternal manifold order is reversed. Collision filters are not applied to an\nexplicitly selected pair.",
802
+ "returnvalues": [
803
+ {
804
+ "name": "contacts",
805
+ "doc": "normalized contact results",
806
+ "types": ["bullet3d.world.contact_result[]"]
807
+ }
808
+ ],
809
+ "parameters": [
810
+ {
811
+ "name": "world",
812
+ "doc": "world handle",
813
+ "types": ["btDiscreteDynamicsWorld"],
814
+ "is_optional": "False"
815
+ },
816
+ {
817
+ "name": "object_a",
818
+ "doc": "first collision object in the world",
819
+ "types": ["btCollisionObject"],
820
+ "is_optional": "False"
821
+ },
822
+ {
823
+ "name": "object_b",
824
+ "doc": "different second collision object in the world",
825
+ "types": ["btCollisionObject"],
826
+ "is_optional": "False"
827
+ },
828
+ {
829
+ "name": "max_results",
830
+ "doc": "maximum number of contact points, or zero for all",
831
+ "types": ["integer"],
832
+ "is_optional": "True"
833
+ }
834
+ ],
835
+ "examples": "",
836
+ "replaces": "",
837
+ "error": "",
838
+ "tparams": [],
839
+ "members": [],
840
+ "notes": [],
841
+ "language": ""
842
+ }
843
+ ],
844
+ "info": {
845
+ "namespace": "bullet3d.world",
846
+ "name": "bullet3d.world",
847
+ "brief": "Bullet dynamics world API",
848
+ "description": "Read and tune the Bullet dynamics world owned by the current collection.\nDefold remains responsible for world lifetime, stepping, collision objects,\ncallbacks, and debug drawing.\n\nWorld and collision-object values returned by this API are borrowed,\ngenerational handles. They become invalid when their collection or owning\ngame object is deleted and must not be retained as native pointers.\n\nAll positions, distances, translations, dimensions and contact distances use\nDefold world units. The binding converts them using `physics.scale`. Rotations\nand unit normals are not scaled. Query functions refresh Bullet broadphase\nAABBs before execution, so collision-object transform changes are visible.\n\nQuery filters are optional tables with these fields:\n\n`category_bits`\n: [type:integer] unsigned 16-bit category bits, default `65535`\n\n`mask_bits`\n: [type:integer] unsigned 16-bit mask bits, default `65535`\n\n`include_triggers`\n: [type:boolean] include objects without contact response, default `true`\n\n`ignore`\n: [type:btCollisionObject|btCollisionObject[]] one collision-object handle or an array of handles to exclude\n\n`report_initial_overlaps`\n: [type:boolean] report shapes overlapping the cast origin as synthesized fraction-zero hits, default `false`\n\n`report_initial_overlaps` is a `bullet3d.world` query option only. It does\nnot change `physics.raycast()` or either Box2D backend.\n\nCategory and mask checks are reciprocal: the query category must match the\nobject's mask and the object's category must match the query mask.\n\nTemporary query shapes use the same geometry fields as\n[ref:bullet3d.shape.get_shape]:\na sphere has `type` and `diameter`, a box has `type` and `dimensions`, a\nY-axis capsule has `type`, `diameter` and `height`, and a convex hull has\n`type` and a `vertices` array with at least four `vector3` values. The `type`\nis one of the `bullet3d.shape.SHAPE_TYPE_*` constants. Every shape can specify\n`position` and `rotation`; their defaults are zero and the identity rotation.\nCast shapes can also specify `target_rotation`, which defaults to `rotation`.\nCapsule `height` is the length of the cylindrical middle section; total\nend-to-end height is `height + diameter`. Query sizes are always expressed\nin Defold world units. Except for triangle meshes, a table returned by\n`bullet3d.shape.get_shape` can be reused directly after adding the desired\nquery transform fields. Queries accept only sphere, box, capsule, and hull.\nHull vertices describe a convex hull; concave input is convexified by Bullet.\nAll query vectors and scalar sizes must be finite. Diameters, dimensions and\ncapsule heights must be greater than zero; hulls require at least four finite\nvertices. Cast translations must be finite and non-zero. Query rotations\nmust be finite, non-zero quaternions and are normalized by the binding. AABB\nlower bounds must not exceed their corresponding upper bounds.\n\nOverlap and enumeration results are arrays of `btCollisionObject` handles.\nCast results are tables containing `object`, `point`, `normal`, `fraction`,\n`initial_overlap`, and `inside`. `shape_index` is present when Bullet reports\na compound child and is one-based. Cast arrays are sorted by ascending\nfraction. `fraction` is in `[0, 1]` along the supplied translation. For native\nhits, `normal` is the hit object's outward unit surface normal; synthesized\ninitial-overlap hits use a zero normal. `inside` is true for a synthesized\nray-origin hit when Bullet reports signed contact distance less than or equal\nto zero. It denotes initial contact or penetration rather than strict\ngeometric containment, and exact-surface cases follow Bullet's contact\ntolerance. Shape-cast initial overlaps set only `initial_overlap`.\n\nContact results contain `object_a`, `object_b`, `position_a`, `position_b`,\n`normal_on_b`, and signed `distance`. Positions are points on their named\nobjects, and `normal_on_b` points from object B toward object A. A negative\ndistance is penetration and a small positive distance is Bullet's contact\nmargin. Object order is always normalized to the order supplied by the caller.\n\n`max_results` is optional. Zero or omission means unlimited results. A\nnegative value is an error. Broadphase overlaps, native world enumeration,\ncontacts, and equal-fraction cast hits have unspecified order. A capped query\ncan therefore return a different equal-priority subset after world changes.\nSynchronous queries execute immediately and do not advance simulation.\nAsync casts are deferred until after the next physics step. They execute on\nthe main thread rather than a worker thread, and all queued casts for one\nworld share one broadphase AABB refresh. Every cast in the batch completes\nbefore any callback runs, so callback mutations cannot affect other query\ncomputations in that batch. Deferral avoids blocking the Lua call site but\ndoes not remove the cast work from the frame.\nNative fraction-zero cast callbacks are suppressed. Starting overlaps are\nomitted by default, or reported through the exact, deduplicated synthesis\nenabled by `report_initial_overlaps`; this avoids direction-dependent Bullet\nresults for casts that start touching or penetrating another object.",
849
+ "path": "engine/gamesys/src/gamesys/scripts/bullet3d/script_bullet3d_world.cpp",
850
+ "file": "",
851
+ "notes": [],
852
+ "language": "Lua"
853
+ },
854
+ "format_version": 2
855
+ }