Scene.lua 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. -- Generated by: C:\src\anki\out\build\x64-Debug\Binaries\GltfImporter.exe PhysicsPlayground.gltf C:/src/anki/Samples/PhysicsPlayground/Assets/ -rpath Assets -texrpath Assets -v
  2. local scene = getSceneGraph()
  3. local events = getEventManager()
  4. node = scene:newSceneNode("Icosphere.001")
  5. node:newModelComponent():loadModelResource("Assets/Icosphere_walls_ac2438354c62251.ankimdl")
  6. trf = Transform.new()
  7. trf:setOrigin(Vec4.new(25.411236, 3.345554, 28.742823, 0))
  8. rot = Mat3x4.new()
  9. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  10. trf:setRotation(rot)
  11. trf:setScale(Vec4.new(1.912920, 1.912920, 1.912920, 0))
  12. node:setLocalTransform(trf)
  13. comp = node:newBodyComponent()
  14. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  15. comp:teleportTo(trf)
  16. node = scene:newSceneNode("Icosphere")
  17. node:newModelComponent():loadModelResource("Assets/Icosphere_walls_ac2438354c62251.ankimdl")
  18. trf = Transform.new()
  19. trf:setOrigin(Vec4.new(25.411236, 3.316930, 22.637743, 0))
  20. rot = Mat3x4.new()
  21. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  22. trf:setRotation(rot)
  23. trf:setScale(Vec4.new(1.264235, 1.264235, 1.264235, 0))
  24. node:setLocalTransform(trf)
  25. comp = node:newBodyComponent()
  26. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  27. comp:teleportTo(trf)
  28. node = scene:newSceneNode("Cube.019")
  29. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  30. trf = Transform.new()
  31. trf:setOrigin(Vec4.new(30.798492, 2.376611, -6.000000, 0))
  32. rot = Mat3x4.new()
  33. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  34. trf:setRotation(rot)
  35. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  36. node:setLocalTransform(trf)
  37. comp = node:newBodyComponent()
  38. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  39. comp:teleportTo(trf)
  40. node = scene:newSceneNode("Cube.018")
  41. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  42. trf = Transform.new()
  43. trf:setOrigin(Vec4.new(29.798492, 1.376611, -6.000000, 0))
  44. rot = Mat3x4.new()
  45. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  46. trf:setRotation(rot)
  47. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  48. node:setLocalTransform(trf)
  49. comp = node:newBodyComponent()
  50. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  51. comp:teleportTo(trf)
  52. node = scene:newSceneNode("Cube.017")
  53. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  54. trf = Transform.new()
  55. trf:setOrigin(Vec4.new(28.798492, 0.376611, -6.000000, 0))
  56. rot = Mat3x4.new()
  57. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  58. trf:setRotation(rot)
  59. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  60. node:setLocalTransform(trf)
  61. comp = node:newBodyComponent()
  62. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  63. comp:teleportTo(trf)
  64. node = scene:newSceneNode("Cube.016")
  65. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  66. trf = Transform.new()
  67. trf:setOrigin(Vec4.new(31.798492, 3.376611, -6.000000, 0))
  68. rot = Mat3x4.new()
  69. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  70. trf:setRotation(rot)
  71. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  72. node:setLocalTransform(trf)
  73. comp = node:newBodyComponent()
  74. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  75. comp:teleportTo(trf)
  76. node = scene:newSceneNode("Cube.015")
  77. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  78. trf = Transform.new()
  79. trf:setOrigin(Vec4.new(32.798492, 4.376611, -6.000000, 0))
  80. rot = Mat3x4.new()
  81. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  82. trf:setRotation(rot)
  83. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  84. node:setLocalTransform(trf)
  85. comp = node:newBodyComponent()
  86. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  87. comp:teleportTo(trf)
  88. node = scene:newSceneNode("Cube.014")
  89. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  90. trf = Transform.new()
  91. trf:setOrigin(Vec4.new(33.798492, 5.376611, -6.000000, 0))
  92. rot = Mat3x4.new()
  93. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  94. trf:setRotation(rot)
  95. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  96. node:setLocalTransform(trf)
  97. comp = node:newBodyComponent()
  98. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  99. comp:teleportTo(trf)
  100. node = scene:newSceneNode("Cube.013")
  101. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  102. trf = Transform.new()
  103. trf:setOrigin(Vec4.new(39.798492, 6.376611, 0.000000, 0))
  104. rot = Mat3x4.new()
  105. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  106. trf:setRotation(rot)
  107. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  108. node:setLocalTransform(trf)
  109. comp = node:newBodyComponent()
  110. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  111. comp:teleportTo(trf)
  112. node = scene:newSceneNode("Cube.012")
  113. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  114. trf = Transform.new()
  115. trf:setOrigin(Vec4.new(39.798492, 6.376611, -6.000000, 0))
  116. rot = Mat3x4.new()
  117. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  118. trf:setRotation(rot)
  119. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  120. node:setLocalTransform(trf)
  121. comp = node:newBodyComponent()
  122. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  123. comp:teleportTo(trf)
  124. node = scene:newSceneNode("Cube.011")
  125. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  126. trf = Transform.new()
  127. trf:setOrigin(Vec4.new(39.798492, 6.376611, 6.000000, 0))
  128. rot = Mat3x4.new()
  129. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  130. trf:setRotation(rot)
  131. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  132. node:setLocalTransform(trf)
  133. comp = node:newBodyComponent()
  134. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  135. comp:teleportTo(trf)
  136. node = scene:newSceneNode("Cube.010")
  137. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  138. trf = Transform.new()
  139. trf:setOrigin(Vec4.new(39.798492, 6.376611, 12.000000, 0))
  140. rot = Mat3x4.new()
  141. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  142. trf:setRotation(rot)
  143. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  144. node:setLocalTransform(trf)
  145. comp = node:newBodyComponent()
  146. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  147. comp:teleportTo(trf)
  148. node = scene:newSceneNode("Cube.009")
  149. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  150. trf = Transform.new()
  151. trf:setOrigin(Vec4.new(42.271385, 2.886189, 0.000000, 0))
  152. rot = Mat3x4.new()
  153. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  154. trf:setRotation(rot)
  155. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  156. node:setLocalTransform(trf)
  157. comp = node:newBodyComponent()
  158. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  159. comp:teleportTo(trf)
  160. node = scene:newSceneNode("Cube.008")
  161. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  162. trf = Transform.new()
  163. trf:setOrigin(Vec4.new(42.271385, 2.886189, -6.000000, 0))
  164. rot = Mat3x4.new()
  165. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  166. trf:setRotation(rot)
  167. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  168. node:setLocalTransform(trf)
  169. comp = node:newBodyComponent()
  170. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  171. comp:teleportTo(trf)
  172. node = scene:newSceneNode("Cube.007")
  173. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  174. trf = Transform.new()
  175. trf:setOrigin(Vec4.new(42.271385, 2.886189, 6.000000, 0))
  176. rot = Mat3x4.new()
  177. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  178. trf:setRotation(rot)
  179. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  180. node:setLocalTransform(trf)
  181. comp = node:newBodyComponent()
  182. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  183. comp:teleportTo(trf)
  184. node = scene:newSceneNode("Cube.006")
  185. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  186. trf = Transform.new()
  187. trf:setOrigin(Vec4.new(42.271385, 2.886189, 12.000000, 0))
  188. rot = Mat3x4.new()
  189. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  190. trf:setRotation(rot)
  191. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  192. node:setLocalTransform(trf)
  193. comp = node:newBodyComponent()
  194. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  195. comp:teleportTo(trf)
  196. node = scene:newSceneNode("Cube.005")
  197. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  198. trf = Transform.new()
  199. trf:setOrigin(Vec4.new(37.271385, 2.886189, 12.000000, 0))
  200. rot = Mat3x4.new()
  201. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  202. trf:setRotation(rot)
  203. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  204. node:setLocalTransform(trf)
  205. comp = node:newBodyComponent()
  206. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  207. comp:teleportTo(trf)
  208. node = scene:newSceneNode("Cube.004")
  209. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  210. trf = Transform.new()
  211. trf:setOrigin(Vec4.new(37.271385, 2.886189, 6.000000, 0))
  212. rot = Mat3x4.new()
  213. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  214. trf:setRotation(rot)
  215. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  216. node:setLocalTransform(trf)
  217. comp = node:newBodyComponent()
  218. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  219. comp:teleportTo(trf)
  220. node = scene:newSceneNode("Cube.003")
  221. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  222. trf = Transform.new()
  223. trf:setOrigin(Vec4.new(37.271385, 2.886189, -6.000000, 0))
  224. rot = Mat3x4.new()
  225. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  226. trf:setRotation(rot)
  227. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  228. node:setLocalTransform(trf)
  229. comp = node:newBodyComponent()
  230. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  231. comp:teleportTo(trf)
  232. node = scene:newSceneNode("Cube.002")
  233. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  234. trf = Transform.new()
  235. trf:setOrigin(Vec4.new(37.271385, 2.886189, 0.000000, 0))
  236. rot = Mat3x4.new()
  237. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  238. trf:setRotation(rot)
  239. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  240. node:setLocalTransform(trf)
  241. comp = node:newBodyComponent()
  242. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  243. comp:teleportTo(trf)
  244. node = scene:newSceneNode("Suzanne")
  245. node:newModelComponent():loadModelResource("Assets/Suzanne_dynamic_36043dae41fe12d5.ankimdl")
  246. trf = Transform.new()
  247. trf:setOrigin(Vec4.new(179.044937, 9.701135, 0.000000, 0))
  248. rot = Mat3x4.new()
  249. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  250. trf:setRotation(rot)
  251. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  252. node:setLocalTransform(trf)
  253. comp = node:newBodyComponent()
  254. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  255. comp:teleportTo(trf)
  256. node = scene:newSceneNode("Cube")
  257. node:newModelComponent():loadModelResource("Assets/floor_walls_784c261d516a979d.ankimdl")
  258. trf = Transform.new()
  259. trf:setOrigin(Vec4.new(0.000000, -5.068616, 0.000000, 0))
  260. rot = Mat3x4.new()
  261. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  262. trf:setRotation(rot)
  263. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  264. node:setLocalTransform(trf)
  265. comp = node:newBodyComponent()
  266. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  267. comp:teleportTo(trf)
  268. node = scene:newSceneNode("Lamp_Orientation")
  269. lcomp = node:newLightComponent()
  270. lcomp:setLightComponentType(LightComponentType.kDirectional)
  271. lcomp:setDiffuseColor(Vec4.new(50.000000, 50.000000, 50.000000, 1))
  272. lcomp:setShadowEnabled(1)
  273. trf = Transform.new()
  274. trf:setOrigin(Vec4.new(4.076245, 74.444725, -1.005454, 0))
  275. rot = Mat3x4.new()
  276. rot:setAll(0.649201, -0.658183, -0.381226, 0.000000, 0.506372, 0.000000, 0.862315, 0.000000, -0.567562, -0.752858, 0.333286, 0.000000)
  277. trf:setRotation(rot)
  278. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  279. node:setLocalTransform(trf)
  280. node = scene:newSceneNode("Camera_Orientation")
  281. scene:setActiveCameraNode(node)
  282. comp = node:newCameraComponent()
  283. comp:setPerspective(0.100000, 500.000000, getRenderer():getAspectRatio() * 0.750416, 0.750416)
  284. trf = Transform.new()
  285. trf:setOrigin(Vec4.new(7.481132, 7.870111, 6.507640, 0))
  286. rot = Mat3x4.new()
  287. rot:setAll(0.685921, -0.324013, 0.651558, 0.000000, 0.000000, 0.895396, 0.445271, 0.000000, -0.727676, -0.305421, 0.614170, 0.000000)
  288. trf:setRotation(rot)
  289. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  290. node:setLocalTransform(trf)
  291. node = scene:newSceneNode("Cube.021")
  292. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  293. trf = Transform.new()
  294. trf:setOrigin(Vec4.new(39.798492, 6.376611, -12.000000, 0))
  295. rot = Mat3x4.new()
  296. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  297. trf:setRotation(rot)
  298. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  299. node:setLocalTransform(trf)
  300. comp = node:newBodyComponent()
  301. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  302. comp:teleportTo(trf)
  303. node = scene:newSceneNode("Cube.022")
  304. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  305. trf = Transform.new()
  306. trf:setOrigin(Vec4.new(42.271385, 2.886189, -12.000000, 0))
  307. rot = Mat3x4.new()
  308. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  309. trf:setRotation(rot)
  310. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  311. node:setLocalTransform(trf)
  312. comp = node:newBodyComponent()
  313. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  314. comp:teleportTo(trf)
  315. node = scene:newSceneNode("Cube.023")
  316. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  317. trf = Transform.new()
  318. trf:setOrigin(Vec4.new(37.271385, 2.886189, -12.000000, 0))
  319. rot = Mat3x4.new()
  320. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  321. trf:setRotation(rot)
  322. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  323. node:setLocalTransform(trf)
  324. comp = node:newBodyComponent()
  325. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  326. comp:teleportTo(trf)
  327. node = scene:newSceneNode("Cube.024")
  328. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  329. trf = Transform.new()
  330. trf:setOrigin(Vec4.new(39.798492, 6.376611, -18.000000, 0))
  331. rot = Mat3x4.new()
  332. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  333. trf:setRotation(rot)
  334. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  335. node:setLocalTransform(trf)
  336. comp = node:newBodyComponent()
  337. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  338. comp:teleportTo(trf)
  339. node = scene:newSceneNode("Cube.025")
  340. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  341. trf = Transform.new()
  342. trf:setOrigin(Vec4.new(42.271385, 2.886189, -18.000000, 0))
  343. rot = Mat3x4.new()
  344. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  345. trf:setRotation(rot)
  346. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  347. node:setLocalTransform(trf)
  348. comp = node:newBodyComponent()
  349. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  350. comp:teleportTo(trf)
  351. node = scene:newSceneNode("Cube.026")
  352. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  353. trf = Transform.new()
  354. trf:setOrigin(Vec4.new(37.271385, 2.886189, -18.000000, 0))
  355. rot = Mat3x4.new()
  356. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  357. trf:setRotation(rot)
  358. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  359. node:setLocalTransform(trf)
  360. comp = node:newBodyComponent()
  361. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  362. comp:teleportTo(trf)
  363. node = scene:newSceneNode("Cube.027")
  364. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  365. trf = Transform.new()
  366. trf:setOrigin(Vec4.new(34.761005, 2.886189, -21.498241, 0))
  367. rot = Mat3x4.new()
  368. rot:setAll(0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000)
  369. trf:setRotation(rot)
  370. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  371. node:setLocalTransform(trf)
  372. comp = node:newBodyComponent()
  373. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  374. comp:teleportTo(trf)
  375. node = scene:newSceneNode("Cube.028")
  376. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  377. trf = Transform.new()
  378. trf:setOrigin(Vec4.new(44.761005, 2.886189, -21.498241, 0))
  379. rot = Mat3x4.new()
  380. rot:setAll(0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000)
  381. trf:setRotation(rot)
  382. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  383. node:setLocalTransform(trf)
  384. comp = node:newBodyComponent()
  385. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  386. comp:teleportTo(trf)
  387. node = scene:newSceneNode("Cube.029")
  388. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  389. trf = Transform.new()
  390. trf:setOrigin(Vec4.new(47.271385, 2.886189, -25.000000, 0))
  391. rot = Mat3x4.new()
  392. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  393. trf:setRotation(rot)
  394. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  395. node:setLocalTransform(trf)
  396. comp = node:newBodyComponent()
  397. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  398. comp:teleportTo(trf)
  399. node = scene:newSceneNode("Cube.030")
  400. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  401. trf = Transform.new()
  402. trf:setOrigin(Vec4.new(32.271385, 2.886189, -25.000000, 0))
  403. rot = Mat3x4.new()
  404. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  405. trf:setRotation(rot)
  406. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  407. node:setLocalTransform(trf)
  408. comp = node:newBodyComponent()
  409. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  410. comp:teleportTo(trf)
  411. node = scene:newSceneNode("Cube.031")
  412. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  413. trf = Transform.new()
  414. trf:setOrigin(Vec4.new(32.271385, 2.886189, -31.000000, 0))
  415. rot = Mat3x4.new()
  416. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  417. trf:setRotation(rot)
  418. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  419. node:setLocalTransform(trf)
  420. comp = node:newBodyComponent()
  421. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  422. comp:teleportTo(trf)
  423. node = scene:newSceneNode("Cube.032")
  424. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  425. trf = Transform.new()
  426. trf:setOrigin(Vec4.new(47.271385, 2.886189, -31.000000, 0))
  427. rot = Mat3x4.new()
  428. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  429. trf:setRotation(rot)
  430. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  431. node:setLocalTransform(trf)
  432. comp = node:newBodyComponent()
  433. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  434. comp:teleportTo(trf)
  435. node = scene:newSceneNode("Cube.033")
  436. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  437. trf = Transform.new()
  438. trf:setOrigin(Vec4.new(44.761005, 2.886189, -34.498241, 0))
  439. rot = Mat3x4.new()
  440. rot:setAll(0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000)
  441. trf:setRotation(rot)
  442. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  443. node:setLocalTransform(trf)
  444. comp = node:newBodyComponent()
  445. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  446. comp:teleportTo(trf)
  447. node = scene:newSceneNode("Cube.034")
  448. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  449. trf = Transform.new()
  450. trf:setOrigin(Vec4.new(38.761005, 2.886189, -34.498241, 0))
  451. rot = Mat3x4.new()
  452. rot:setAll(0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000)
  453. trf:setRotation(rot)
  454. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  455. node:setLocalTransform(trf)
  456. comp = node:newBodyComponent()
  457. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  458. comp:teleportTo(trf)
  459. node = scene:newSceneNode("Cube.035")
  460. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  461. trf = Transform.new()
  462. trf:setOrigin(Vec4.new(34.761005, 2.886189, -34.498241, 0))
  463. rot = Mat3x4.new()
  464. rot:setAll(0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000)
  465. trf:setRotation(rot)
  466. trf:setScale(Vec4.new(0.995130, 0.995130, 0.995130, 0))
  467. node:setLocalTransform(trf)
  468. comp = node:newBodyComponent()
  469. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  470. comp:teleportTo(trf)
  471. node = scene:newSceneNode("Cube.036")
  472. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  473. trf = Transform.new()
  474. trf:setOrigin(Vec4.new(34.798492, 6.376611, -32.000000, 0))
  475. rot = Mat3x4.new()
  476. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  477. trf:setRotation(rot)
  478. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  479. node:setLocalTransform(trf)
  480. comp = node:newBodyComponent()
  481. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  482. comp:teleportTo(trf)
  483. node = scene:newSceneNode("Cube.038")
  484. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  485. trf = Transform.new()
  486. trf:setOrigin(Vec4.new(34.798492, 6.376611, -24.000000, 0))
  487. rot = Mat3x4.new()
  488. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  489. trf:setRotation(rot)
  490. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  491. node:setLocalTransform(trf)
  492. comp = node:newBodyComponent()
  493. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  494. comp:teleportTo(trf)
  495. node = scene:newSceneNode("Cube.039")
  496. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  497. trf = Transform.new()
  498. trf:setOrigin(Vec4.new(34.798492, 6.398044, -28.000000, 0))
  499. rot = Mat3x4.new()
  500. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  501. trf:setRotation(rot)
  502. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  503. node:setLocalTransform(trf)
  504. comp = node:newBodyComponent()
  505. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  506. comp:teleportTo(trf)
  507. node = scene:newSceneNode("Cube.037")
  508. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  509. trf = Transform.new()
  510. trf:setOrigin(Vec4.new(44.798492, 6.376611, -32.000000, 0))
  511. rot = Mat3x4.new()
  512. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  513. trf:setRotation(rot)
  514. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  515. node:setLocalTransform(trf)
  516. comp = node:newBodyComponent()
  517. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  518. comp:teleportTo(trf)
  519. node = scene:newSceneNode("Cube.040")
  520. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  521. trf = Transform.new()
  522. trf:setOrigin(Vec4.new(44.798492, 6.376611, -24.000000, 0))
  523. rot = Mat3x4.new()
  524. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  525. trf:setRotation(rot)
  526. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  527. node:setLocalTransform(trf)
  528. comp = node:newBodyComponent()
  529. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  530. comp:teleportTo(trf)
  531. node = scene:newSceneNode("Cube.041")
  532. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  533. trf = Transform.new()
  534. trf:setOrigin(Vec4.new(44.798492, 6.398044, -28.000000, 0))
  535. rot = Mat3x4.new()
  536. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  537. trf:setRotation(rot)
  538. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  539. node:setLocalTransform(trf)
  540. comp = node:newBodyComponent()
  541. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  542. comp:teleportTo(trf)
  543. node = scene:newSceneNode("Cube.042")
  544. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  545. trf = Transform.new()
  546. trf:setOrigin(Vec4.new(39.798492, 6.334259, -31.947594, 0))
  547. rot = Mat3x4.new()
  548. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  549. trf:setRotation(rot)
  550. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  551. node:setLocalTransform(trf)
  552. comp = node:newBodyComponent()
  553. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  554. comp:teleportTo(trf)
  555. node = scene:newSceneNode("Cube.043")
  556. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  557. trf = Transform.new()
  558. trf:setOrigin(Vec4.new(39.798492, 6.334259, -23.947592, 0))
  559. rot = Mat3x4.new()
  560. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  561. trf:setRotation(rot)
  562. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  563. node:setLocalTransform(trf)
  564. comp = node:newBodyComponent()
  565. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  566. comp:teleportTo(trf)
  567. node = scene:newSceneNode("Cube.044")
  568. node:newModelComponent():loadModelResource("Assets/wall_walls.001_cc03fb9e615c68b5.ankimdl")
  569. trf = Transform.new()
  570. trf:setOrigin(Vec4.new(39.798492, 6.355691, -27.947592, 0))
  571. rot = Mat3x4.new()
  572. rot:setAll(0.000000, 1.000000, 0.000000, 0.000000, -1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  573. trf:setRotation(rot)
  574. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  575. node:setLocalTransform(trf)
  576. comp = node:newBodyComponent()
  577. comp:setCollisionShapeType(BodyComponentCollisionShapeType.kFromModelComponent)
  578. comp:teleportTo(trf)
  579. node = scene:newSceneNode("refl_probe.002")
  580. comp = node:newGlobalIlluminationProbeComponent()
  581. comp:setBoxVolumeSize(Vec3.new(256.996124, 256.996124, 256.996124))
  582. comp:setCellSize(32.000000)
  583. trf = Transform.new()
  584. trf:setOrigin(Vec4.new(-0.068372, 9.192602, -0.126609, 0))
  585. rot = Mat3x4.new()
  586. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  587. trf:setRotation(rot)
  588. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  589. node:setLocalTransform(trf)
  590. node = scene:newSceneNode("refl_probe")
  591. comp = node:newReflectionProbeComponent()
  592. comp:setBoxVolumeSize(Vec3.new(268.223877, 268.223877, 268.223877))
  593. trf = Transform.new()
  594. trf:setOrigin(Vec4.new(0.000000, 9.113202, 0.000000, 0))
  595. rot = Mat3x4.new()
  596. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  597. trf:setRotation(rot)
  598. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  599. node:setLocalTransform(trf)
  600. node = scene:newSceneNode("Cube.045")
  601. comp = node:newGlobalIlluminationProbeComponent()
  602. comp:setBoxVolumeSize(Vec3.new(15.025865, 6.952979, 12.903503))
  603. trf = Transform.new()
  604. trf:setOrigin(Vec4.new(39.731613, 2.915391, -28.049887, 0))
  605. rot = Mat3x4.new()
  606. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  607. trf:setRotation(rot)
  608. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  609. node:setLocalTransform(trf)
  610. node = scene:newSceneNode("Skybox")
  611. comp = node:newSkyboxComponent()
  612. comp:loadImageResource("EngineAssets/DefaultSkybox.ankitex")
  613. comp:setMaxFogDensity(0.100000)
  614. trf = Transform.new()
  615. trf:setOrigin(Vec4.new(-3.710423, 69.685875, 0.000000, 0))
  616. rot = Mat3x4.new()
  617. rot:setAll(1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000)
  618. trf:setRotation(rot)
  619. trf:setScale(Vec4.new(1.000000, 1.000000, 1.000000, 0))
  620. node:setLocalTransform(trf)