raycast.collection 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. name: "raycast"
  2. scale_along_z: 0
  3. embedded_instances {
  4. id: "bee"
  5. data: "components {\n"
  6. " id: \"raycast\"\n"
  7. " component: \"/example/raycast.script\"\n"
  8. " position {\n"
  9. " x: 0.0\n"
  10. " y: 0.0\n"
  11. " z: 0.0\n"
  12. " }\n"
  13. " rotation {\n"
  14. " x: 0.0\n"
  15. " y: 0.0\n"
  16. " z: 0.0\n"
  17. " w: 1.0\n"
  18. " }\n"
  19. " property_decls {\n"
  20. " }\n"
  21. "}\n"
  22. "embedded_components {\n"
  23. " id: \"sprite\"\n"
  24. " type: \"sprite\"\n"
  25. " data: \"default_animation: \\\"bee\\\"\\n"
  26. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  27. "blend_mode: BLEND_MODE_ALPHA\\n"
  28. "textures {\\n"
  29. " sampler: \\\"texture_sampler\\\"\\n"
  30. " texture: \\\"/assets/bee.atlas\\\"\\n"
  31. "}\\n"
  32. "\"\n"
  33. " position {\n"
  34. " x: 0.0\n"
  35. " y: 0.0\n"
  36. " z: 0.0\n"
  37. " }\n"
  38. " rotation {\n"
  39. " x: 0.0\n"
  40. " y: 0.0\n"
  41. " z: 0.0\n"
  42. " w: 1.0\n"
  43. " }\n"
  44. "}\n"
  45. ""
  46. position {
  47. x: 360.0
  48. y: 360.0
  49. z: 0.0
  50. }
  51. rotation {
  52. x: 0.0
  53. y: 0.0
  54. z: 0.0
  55. w: 1.0
  56. }
  57. scale3 {
  58. x: 1.0
  59. y: 1.0
  60. z: 1.0
  61. }
  62. }
  63. embedded_instances {
  64. id: "stone3"
  65. data: "embedded_components {\n"
  66. " id: \"sprite\"\n"
  67. " type: \"sprite\"\n"
  68. " data: \"default_animation: \\\"elementStone023\\\"\\n"
  69. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  70. "blend_mode: BLEND_MODE_ALPHA\\n"
  71. "textures {\\n"
  72. " sampler: \\\"texture_sampler\\\"\\n"
  73. " texture: \\\"/assets/sprites.atlas\\\"\\n"
  74. "}\\n"
  75. "\"\n"
  76. " position {\n"
  77. " x: 0.0\n"
  78. " y: 0.0\n"
  79. " z: 0.0\n"
  80. " }\n"
  81. " rotation {\n"
  82. " x: 0.0\n"
  83. " y: 0.0\n"
  84. " z: 0.0\n"
  85. " w: 1.0\n"
  86. " }\n"
  87. "}\n"
  88. "embedded_components {\n"
  89. " id: \"collisionobject\"\n"
  90. " type: \"collisionobject\"\n"
  91. " data: \"collision_shape: \\\"\\\"\\n"
  92. "type: COLLISION_OBJECT_TYPE_KINEMATIC\\n"
  93. "mass: 0.0\\n"
  94. "friction: 0.1\\n"
  95. "restitution: 0.5\\n"
  96. "group: \\\"stone\\\"\\n"
  97. "mask: \\\"bee\\\"\\n"
  98. "embedded_collision_shape {\\n"
  99. " shapes {\\n"
  100. " shape_type: TYPE_BOX\\n"
  101. " position {\\n"
  102. " x: 0.0\\n"
  103. " y: 0.0\\n"
  104. " z: 0.0\\n"
  105. " }\\n"
  106. " rotation {\\n"
  107. " x: 0.0\\n"
  108. " y: 0.0\\n"
  109. " z: 0.0\\n"
  110. " w: 1.0\\n"
  111. " }\\n"
  112. " index: 0\\n"
  113. " count: 3\\n"
  114. " id: \\\"\\\"\\n"
  115. " }\\n"
  116. " data: 70.0\\n"
  117. " data: 70.0\\n"
  118. " data: 10.0\\n"
  119. "}\\n"
  120. "linear_damping: 0.0\\n"
  121. "angular_damping: 0.0\\n"
  122. "locked_rotation: false\\n"
  123. "bullet: false\\n"
  124. "\"\n"
  125. " position {\n"
  126. " x: 0.0\n"
  127. " y: 0.0\n"
  128. " z: 0.0\n"
  129. " }\n"
  130. " rotation {\n"
  131. " x: 0.0\n"
  132. " y: 0.0\n"
  133. " z: 0.0\n"
  134. " w: 1.0\n"
  135. " }\n"
  136. "}\n"
  137. ""
  138. position {
  139. x: 131.0
  140. y: 161.0
  141. z: 0.0
  142. }
  143. rotation {
  144. x: 0.0
  145. y: 0.0
  146. z: 0.0
  147. w: 1.0
  148. }
  149. scale3 {
  150. x: 1.0
  151. y: 1.0
  152. z: 1.0
  153. }
  154. }
  155. embedded_instances {
  156. id: "stone1"
  157. data: "embedded_components {\n"
  158. " id: \"collisionobject\"\n"
  159. " type: \"collisionobject\"\n"
  160. " data: \"collision_shape: \\\"\\\"\\n"
  161. "type: COLLISION_OBJECT_TYPE_KINEMATIC\\n"
  162. "mass: 0.0\\n"
  163. "friction: 0.1\\n"
  164. "restitution: 0.5\\n"
  165. "group: \\\"stone\\\"\\n"
  166. "mask: \\\"bee\\\"\\n"
  167. "embedded_collision_shape {\\n"
  168. " shapes {\\n"
  169. " shape_type: TYPE_BOX\\n"
  170. " position {\\n"
  171. " x: 0.0\\n"
  172. " y: 0.0\\n"
  173. " z: 0.0\\n"
  174. " }\\n"
  175. " rotation {\\n"
  176. " x: 0.0\\n"
  177. " y: 0.0\\n"
  178. " z: 0.0\\n"
  179. " w: 1.0\\n"
  180. " }\\n"
  181. " index: 0\\n"
  182. " count: 3\\n"
  183. " id: \\\"\\\"\\n"
  184. " }\\n"
  185. " data: 70.0\\n"
  186. " data: 70.0\\n"
  187. " data: 10.0\\n"
  188. "}\\n"
  189. "linear_damping: 0.0\\n"
  190. "angular_damping: 0.0\\n"
  191. "locked_rotation: false\\n"
  192. "bullet: false\\n"
  193. "\"\n"
  194. " position {\n"
  195. " x: 0.0\n"
  196. " y: 0.0\n"
  197. " z: 0.0\n"
  198. " }\n"
  199. " rotation {\n"
  200. " x: 0.0\n"
  201. " y: 0.0\n"
  202. " z: 0.0\n"
  203. " w: 1.0\n"
  204. " }\n"
  205. "}\n"
  206. "embedded_components {\n"
  207. " id: \"sprite\"\n"
  208. " type: \"sprite\"\n"
  209. " data: \"default_animation: \\\"elementStone023\\\"\\n"
  210. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  211. "blend_mode: BLEND_MODE_ALPHA\\n"
  212. "textures {\\n"
  213. " sampler: \\\"texture_sampler\\\"\\n"
  214. " texture: \\\"/assets/sprites.atlas\\\"\\n"
  215. "}\\n"
  216. "\"\n"
  217. " position {\n"
  218. " x: 0.0\n"
  219. " y: 0.0\n"
  220. " z: 0.0\n"
  221. " }\n"
  222. " rotation {\n"
  223. " x: 0.0\n"
  224. " y: 0.0\n"
  225. " z: 0.0\n"
  226. " w: 1.0\n"
  227. " }\n"
  228. "}\n"
  229. ""
  230. position {
  231. x: 566.0
  232. y: 233.0
  233. z: 0.0
  234. }
  235. rotation {
  236. x: 0.0
  237. y: 0.0
  238. z: 0.0
  239. w: 1.0
  240. }
  241. scale3 {
  242. x: 1.0
  243. y: 1.0
  244. z: 1.0
  245. }
  246. }
  247. embedded_instances {
  248. id: "stone2"
  249. data: "embedded_components {\n"
  250. " id: \"collisionobject\"\n"
  251. " type: \"collisionobject\"\n"
  252. " data: \"collision_shape: \\\"\\\"\\n"
  253. "type: COLLISION_OBJECT_TYPE_KINEMATIC\\n"
  254. "mass: 0.0\\n"
  255. "friction: 0.1\\n"
  256. "restitution: 0.5\\n"
  257. "group: \\\"stone\\\"\\n"
  258. "mask: \\\"bee\\\"\\n"
  259. "embedded_collision_shape {\\n"
  260. " shapes {\\n"
  261. " shape_type: TYPE_BOX\\n"
  262. " position {\\n"
  263. " x: 0.0\\n"
  264. " y: 0.0\\n"
  265. " z: 0.0\\n"
  266. " }\\n"
  267. " rotation {\\n"
  268. " x: 0.0\\n"
  269. " y: 0.0\\n"
  270. " z: 0.0\\n"
  271. " w: 1.0\\n"
  272. " }\\n"
  273. " index: 0\\n"
  274. " count: 3\\n"
  275. " id: \\\"\\\"\\n"
  276. " }\\n"
  277. " data: 70.0\\n"
  278. " data: 70.0\\n"
  279. " data: 10.0\\n"
  280. "}\\n"
  281. "linear_damping: 0.0\\n"
  282. "angular_damping: 0.0\\n"
  283. "locked_rotation: false\\n"
  284. "bullet: false\\n"
  285. "\"\n"
  286. " position {\n"
  287. " x: 0.0\n"
  288. " y: 0.0\n"
  289. " z: 0.0\n"
  290. " }\n"
  291. " rotation {\n"
  292. " x: 0.0\n"
  293. " y: 0.0\n"
  294. " z: 0.0\n"
  295. " w: 1.0\n"
  296. " }\n"
  297. "}\n"
  298. "embedded_components {\n"
  299. " id: \"sprite\"\n"
  300. " type: \"sprite\"\n"
  301. " data: \"default_animation: \\\"elementStone023\\\"\\n"
  302. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  303. "blend_mode: BLEND_MODE_ALPHA\\n"
  304. "textures {\\n"
  305. " sampler: \\\"texture_sampler\\\"\\n"
  306. " texture: \\\"/assets/sprites.atlas\\\"\\n"
  307. "}\\n"
  308. "\"\n"
  309. " position {\n"
  310. " x: 0.0\n"
  311. " y: 0.0\n"
  312. " z: 0.0\n"
  313. " }\n"
  314. " rotation {\n"
  315. " x: 0.0\n"
  316. " y: 0.0\n"
  317. " z: 0.0\n"
  318. " w: 1.0\n"
  319. " }\n"
  320. "}\n"
  321. ""
  322. position {
  323. x: 273.0
  324. y: 532.0
  325. z: 0.0
  326. }
  327. rotation {
  328. x: 0.0
  329. y: 0.0
  330. z: 0.0
  331. w: 1.0
  332. }
  333. scale3 {
  334. x: 1.0
  335. y: 1.0
  336. z: 1.0
  337. }
  338. }