box2.go 1002 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. embedded_components {
  2. id: "model"
  3. type: "model"
  4. data: "mesh: \"/assets/models/crate-color.glb\"\n"
  5. "name: \"{{NAME}}\"\n"
  6. "materials {\n"
  7. " name: \"colormap\"\n"
  8. " material: \"/assets/materials/unlit.material\"\n"
  9. " textures {\n"
  10. " sampler: \"texture0\"\n"
  11. " texture: \"/assets/models/Textures/colormap.png\"\n"
  12. " }\n"
  13. "}\n"
  14. ""
  15. position {
  16. y: -0.25
  17. }
  18. }
  19. embedded_components {
  20. id: "collisionobject"
  21. type: "collisionobject"
  22. data: "type: COLLISION_OBJECT_TYPE_DYNAMIC\n"
  23. "mass: 1.0\n"
  24. "friction: 0.9\n"
  25. "restitution: 0.3\n"
  26. "group: \"default\"\n"
  27. "mask: \"default\"\n"
  28. "embedded_collision_shape {\n"
  29. " shapes {\n"
  30. " shape_type: TYPE_BOX\n"
  31. " position {\n"
  32. " }\n"
  33. " rotation {\n"
  34. " }\n"
  35. " index: 0\n"
  36. " count: 3\n"
  37. " }\n"
  38. " data: 0.25\n"
  39. " data: 0.25\n"
  40. " data: 0.25\n"
  41. "}\n"
  42. "linear_damping: 0.001\n"
  43. "event_collision: false\n"
  44. "event_contact: false\n"
  45. "event_trigger: false\n"
  46. ""
  47. }