aabb.collection 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. name: "gltf"
  2. scale_along_z: 1
  3. embedded_instances {
  4. id: "camera"
  5. data: "embedded_components {\n"
  6. " id: \"camera\"\n"
  7. " type: \"camera\"\n"
  8. " data: \"aspect_ratio: 1.0\\n"
  9. "fov: 0.7854\\n"
  10. "near_z: 0.1\\n"
  11. "far_z: 1000.0\\n"
  12. "auto_aspect_ratio: 1\\n"
  13. "\"\n"
  14. "}\n"
  15. ""
  16. position {
  17. x: 1.6733184
  18. y: 0.87541014
  19. z: -2.2133834
  20. }
  21. rotation {
  22. x: -0.041512698
  23. y: 0.93996596
  24. z: 0.12374887
  25. w: 0.31532025
  26. }
  27. }
  28. embedded_instances {
  29. id: "main"
  30. data: "components {\n"
  31. " id: \"aabb\"\n"
  32. " component: \"/example/aabb.script\"\n"
  33. "}\n"
  34. "embedded_components {\n"
  35. " id: \"factory_box1\"\n"
  36. " type: \"factory\"\n"
  37. " data: \"prototype: \\\"/example/box1.go\\\"\\n"
  38. "\"\n"
  39. "}\n"
  40. "embedded_components {\n"
  41. " id: \"factory_box2\"\n"
  42. " type: \"factory\"\n"
  43. " data: \"prototype: \\\"/example/box2.go\\\"\\n"
  44. "\"\n"
  45. "}\n"
  46. ""
  47. }
  48. embedded_instances {
  49. id: "ground"
  50. data: "embedded_components {\n"
  51. " id: \"sprite\"\n"
  52. " type: \"sprite\"\n"
  53. " data: \"default_animation: \\\"anim\\\"\\n"
  54. "material: \\\"/builtins/materials/sprite.material\\\"\\n"
  55. "size {\\n"
  56. " x: 40.0\\n"
  57. " y: 40.0\\n"
  58. "}\\n"
  59. "size_mode: SIZE_MODE_MANUAL\\n"
  60. "textures {\\n"
  61. " sampler: \\\"texture_sampler\\\"\\n"
  62. " texture: \\\"/builtins/graphics/particle_blob.tilesource\\\"\\n"
  63. "}\\n"
  64. "\"\n"
  65. " rotation {\n"
  66. " x: 0.70710677\n"
  67. " w: 0.70710677\n"
  68. " }\n"
  69. "}\n"
  70. "embedded_components {\n"
  71. " id: \"collisionobject\"\n"
  72. " type: \"collisionobject\"\n"
  73. " data: \"type: COLLISION_OBJECT_TYPE_STATIC\\n"
  74. "mass: 0.0\\n"
  75. "friction: 0.8\\n"
  76. "restitution: 0.2\\n"
  77. "group: \\\"default\\\"\\n"
  78. "mask: \\\"default\\\"\\n"
  79. "embedded_collision_shape {\\n"
  80. " shapes {\\n"
  81. " shape_type: TYPE_BOX\\n"
  82. " position {\\n"
  83. " y: -0.25\\n"
  84. " }\\n"
  85. " rotation {\\n"
  86. " }\\n"
  87. " index: 0\\n"
  88. " count: 3\\n"
  89. " }\\n"
  90. " data: 50.0\\n"
  91. " data: 0.25\\n"
  92. " data: 50.0\\n"
  93. "}\\n"
  94. "\"\n"
  95. "}\n"
  96. ""
  97. }