constraints.scene 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. scene
  2. {
  3. path = res/common/constraints.gpb
  4. node floor
  5. {
  6. material = res/common/physics.material#floor
  7. collisionObject = res/common/constraints.physics#staticBox
  8. }
  9. node wall01
  10. {
  11. material = res/common/physics.material#floor
  12. collisionObject = res/common/constraints.physics#staticBox
  13. }
  14. node wall02
  15. {
  16. material = res/common/physics.material#floor
  17. collisionObject = res/common/constraints.physics#staticBox
  18. }
  19. node door01
  20. {
  21. material = res/common/physics.material#floor
  22. collisionObject = res/common/constraints.physics#box
  23. }
  24. node door02
  25. {
  26. material = res/common/physics.material#floor
  27. collisionObject = res/common/constraints.physics#staticBox
  28. }
  29. node wall03
  30. {
  31. material = res/common/physics.material#floor
  32. collisionObject = res/common/constraints.physics#staticBox
  33. }
  34. node wall04
  35. {
  36. material = res/common/physics.material#floor
  37. collisionObject = res/common/constraints.physics#staticBox
  38. }
  39. node sphere
  40. {
  41. material = res/common/physics.material#red
  42. collisionObject = res/common/constraints.physics#ball
  43. }
  44. physics
  45. {
  46. gravity = 0.0, -9.8, 0.0
  47. constraint
  48. {
  49. type = HINGE
  50. rigidBodyA = door01
  51. //rotationOffsetA = 0.0, 1.0, 0.0, 90.0
  52. translationOffsetA = -5.0, 0.0, 0
  53. limits = 0.0, 360.0, 0.0
  54. //breakingImpulse = 80.0
  55. }
  56. }
  57. }