bullet.go 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. embedded_components {
  2. id: "sprite"
  3. type: "sprite"
  4. data: "default_animation: \"flame\"\n"
  5. "material: \"/builtins/materials/sprite.material\"\n"
  6. "blend_mode: BLEND_MODE_ALPHA\n"
  7. "textures {\n"
  8. " sampler: \"texture_sampler\"\n"
  9. " texture: \"/assets/sprites.atlas\"\n"
  10. "}\n"
  11. ""
  12. position {
  13. x: 0.0
  14. y: 0.0
  15. z: 0.0
  16. }
  17. rotation {
  18. x: 0.0
  19. y: 0.0
  20. z: 0.0
  21. w: 1.0
  22. }
  23. }
  24. embedded_components {
  25. id: "collisionobject"
  26. type: "collisionobject"
  27. data: "collision_shape: \"\"\n"
  28. "type: COLLISION_OBJECT_TYPE_KINEMATIC\n"
  29. "mass: 0.0\n"
  30. "friction: 0.1\n"
  31. "restitution: 0.5\n"
  32. "group: \"bullet\"\n"
  33. "mask: \"enemy\"\n"
  34. "embedded_collision_shape {\n"
  35. " shapes {\n"
  36. " shape_type: TYPE_SPHERE\n"
  37. " position {\n"
  38. " x: 0.0\n"
  39. " y: 20.0\n"
  40. " z: 0.0\n"
  41. " }\n"
  42. " rotation {\n"
  43. " x: 0.0\n"
  44. " y: 0.0\n"
  45. " z: 0.0\n"
  46. " w: 1.0\n"
  47. " }\n"
  48. " index: 0\n"
  49. " count: 1\n"
  50. " id: \"\"\n"
  51. " }\n"
  52. " data: 20.0\n"
  53. "}\n"
  54. "linear_damping: 0.0\n"
  55. "angular_damping: 0.0\n"
  56. "locked_rotation: false\n"
  57. "bullet: false\n"
  58. ""
  59. position {
  60. x: 0.0
  61. y: 0.0
  62. z: 0.0
  63. }
  64. rotation {
  65. x: 0.0
  66. y: 0.0
  67. z: 0.0
  68. w: 1.0
  69. }
  70. }