gaesup-world 0.0.62 → 0.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (310) hide show
  1. package/lib/index.ts +10 -0
  2. package/package.json +3 -13
  3. package/tsconfig.json +3 -2
  4. package/dist/examples/select/App.d.ts +0 -2
  5. package/dist/examples/select/App.js +0 -6
  6. package/dist/examples/select/global.css.js +0 -71
  7. package/dist/examples/select/main.d.ts +0 -1
  8. package/dist/examples/select/main.js +0 -6
  9. package/dist/examples/select/platform/ControlledInput.d.ts +0 -1
  10. package/dist/examples/select/platform/ControlledInput.js +0 -29
  11. package/dist/examples/select/platform/DynamicPlatforms.d.ts +0 -8
  12. package/dist/examples/select/platform/DynamicPlatforms.js +0 -48
  13. package/dist/examples/select/platform/FloatMove.d.ts +0 -14
  14. package/dist/examples/select/platform/FloatMove.js +0 -60
  15. package/dist/examples/select/platform/Floor.d.ts +0 -1
  16. package/dist/examples/select/platform/Floor.js +0 -7
  17. package/dist/examples/select/platform/RigidObjects.d.ts +0 -1
  18. package/dist/examples/select/platform/RigidObjects.js +0 -7
  19. package/dist/examples/select/platform/RoughPlane.d.ts +0 -1
  20. package/dist/examples/select/platform/RoughPlane.js +0 -20
  21. package/dist/examples/select/platform/Slopes.d.ts +0 -1
  22. package/dist/examples/select/platform/Slopes.js +0 -25
  23. package/dist/examples/select/platform/style.css.d.ts +0 -1
  24. package/dist/examples/select/platform/style.css.js +0 -11
  25. package/dist/examples/select/src/index.d.ts +0 -5
  26. package/dist/examples/select/src/index.js +0 -117
  27. package/dist/examples/select/src/keyboardMap/character.d.ts +0 -8
  28. package/dist/examples/select/src/keyboardMap/character.js +0 -18
  29. package/dist/examples/select/src/keyboardMap/vehicle.d.ts +0 -4
  30. package/dist/examples/select/src/keyboardMap/vehicle.js +0 -8
  31. package/dist/examples/select/src/style.css.d.ts +0 -35
  32. package/dist/examples/select/src/style.css.js +0 -81
  33. package/dist/src/styles/global.css.d.ts +0 -1
  34. package/index.ts +0 -7
  35. /package/dist/{src/gaesup → gaesup}/animation/actions.d.ts +0 -0
  36. /package/dist/{src/gaesup → gaesup}/animation/actions.js +0 -0
  37. /package/dist/{src/gaesup → gaesup}/animation/index.d.ts +0 -0
  38. /package/dist/{src/gaesup → gaesup}/animation/index.js +0 -0
  39. /package/dist/{src/gaesup → gaesup}/camera/cameraCollisionDetecter.d.ts +0 -0
  40. /package/dist/{src/gaesup → gaesup}/camera/cameraCollisionDetecter.js +0 -0
  41. /package/dist/{src/gaesup → gaesup}/camera/control/map.d.ts +0 -0
  42. /package/dist/{src/gaesup → gaesup}/camera/control/map.js +0 -0
  43. /package/dist/{src/gaesup → gaesup}/camera/control/normal.d.ts +0 -0
  44. /package/dist/{src/gaesup → gaesup}/camera/control/normal.js +0 -0
  45. /package/dist/{src/gaesup → gaesup}/camera/control/orbit.d.ts +0 -0
  46. /package/dist/{src/gaesup → gaesup}/camera/control/orbit.js +0 -0
  47. /package/dist/{src/gaesup → gaesup}/camera/index.d.ts +0 -0
  48. /package/dist/{src/gaesup → gaesup}/camera/index.js +0 -0
  49. /package/dist/{src/gaesup → gaesup}/camera/type.d.ts +0 -0
  50. /package/dist/{src/gaesup → gaesup}/camera/type.js +0 -0
  51. /package/dist/{src/gaesup → gaesup}/component/Airplane.d.ts +0 -0
  52. /package/dist/{src/gaesup → gaesup}/component/Airplane.js +0 -0
  53. /package/dist/{src/gaesup → gaesup}/component/Character.d.ts +0 -0
  54. /package/dist/{src/gaesup → gaesup}/component/Character.js +0 -0
  55. /package/dist/{src/gaesup → gaesup}/component/Vehicle.d.ts +0 -0
  56. /package/dist/{src/gaesup → gaesup}/component/Vehicle.js +0 -0
  57. /package/dist/{src/gaesup → gaesup}/component/gltf/AirplaneGltf.d.ts +0 -0
  58. /package/dist/{src/gaesup → gaesup}/component/gltf/AirplaneGltf.js +0 -0
  59. /package/dist/{src/gaesup → gaesup}/component/gltf/CharacterGltf.d.ts +0 -0
  60. /package/dist/{src/gaesup → gaesup}/component/gltf/CharacterGltf.js +0 -0
  61. /package/dist/{src/gaesup → gaesup}/component/gltf/VehicleGltf.d.ts +0 -0
  62. /package/dist/{src/gaesup → gaesup}/component/gltf/VehicleGltf.js +0 -0
  63. /package/dist/{src/gaesup → gaesup}/component/gltf/WheelJoint.d.ts +0 -0
  64. /package/dist/{src/gaesup → gaesup}/component/gltf/WheelJoint.js +0 -0
  65. /package/dist/{src/gaesup → gaesup}/component/gltf/index.d.ts +0 -0
  66. /package/dist/{src/gaesup → gaesup}/component/gltf/index.js +0 -0
  67. /package/dist/{src/gaesup → gaesup}/component/gltf/type.d.ts +0 -0
  68. /package/dist/{src/gaesup → gaesup}/component/gltf/type.js +0 -0
  69. /package/dist/{src/gaesup → gaesup}/component/index.d.ts +0 -0
  70. /package/dist/{src/gaesup → gaesup}/component/index.js +0 -0
  71. /package/dist/{src/gaesup → gaesup}/component/ref/airplane.d.ts +0 -0
  72. /package/dist/{src/gaesup → gaesup}/component/ref/airplane.js +0 -0
  73. /package/dist/{src/gaesup → gaesup}/component/ref/character.d.ts +0 -0
  74. /package/dist/{src/gaesup → gaesup}/component/ref/character.js +0 -0
  75. /package/dist/{src/gaesup → gaesup}/component/ref/index.d.ts +0 -0
  76. /package/dist/{src/gaesup → gaesup}/component/ref/index.js +0 -0
  77. /package/dist/{src/gaesup → gaesup}/component/ref/vehicle.d.ts +0 -0
  78. /package/dist/{src/gaesup → gaesup}/component/ref/vehicle.js +0 -0
  79. /package/dist/{src/gaesup → gaesup}/component/setInit.d.ts +0 -0
  80. /package/dist/{src/gaesup → gaesup}/component/setInit.js +0 -0
  81. /package/dist/{src/gaesup → gaesup}/controller/context/index.d.ts +0 -0
  82. /package/dist/{src/gaesup → gaesup}/controller/context/index.js +0 -0
  83. /package/dist/{src/gaesup → gaesup}/controller/context/reducer.d.ts +0 -0
  84. /package/dist/{src/gaesup → gaesup}/controller/context/reducer.js +0 -0
  85. /package/dist/{src/gaesup → gaesup}/controller/context/type.d.ts +0 -0
  86. /package/dist/{src/gaesup → gaesup}/controller/context/type.js +0 -0
  87. /package/dist/{src/gaesup → gaesup}/controller/index.d.ts +0 -0
  88. /package/dist/{src/gaesup → gaesup}/controller/index.js +0 -0
  89. /package/dist/{src/gaesup → gaesup}/controller/type.d.ts +0 -0
  90. /package/dist/{src/gaesup → gaesup}/controller/type.js +0 -0
  91. /package/dist/{src/gaesup → gaesup}/gaesupProps/index.d.ts +0 -0
  92. /package/dist/{src/gaesup → gaesup}/gaesupProps/index.js +0 -0
  93. /package/dist/{src/gaesup → gaesup}/index.d.ts +0 -0
  94. /package/dist/{src/gaesup → gaesup}/index.js +0 -0
  95. /package/dist/{src/gaesup → gaesup}/initial/callback/index.d.ts +0 -0
  96. /package/dist/{src/gaesup → gaesup}/initial/callback/index.js +0 -0
  97. /package/dist/{src/gaesup → gaesup}/initial/callback/type.d.ts +0 -0
  98. /package/dist/{src/gaesup → gaesup}/initial/callback/type.js +0 -0
  99. /package/dist/{src/gaesup → gaesup}/initial/controller/index.d.ts +0 -0
  100. /package/dist/{src/gaesup → gaesup}/initial/controller/index.js +0 -0
  101. /package/dist/{src/gaesup → gaesup}/initial/controller/initDebug.d.ts +0 -0
  102. /package/dist/{src/gaesup → gaesup}/initial/controller/initDebug.js +0 -0
  103. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/airplane.d.ts +0 -0
  104. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/airplane.js +0 -0
  105. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/character.d.ts +0 -0
  106. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/character.js +0 -0
  107. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/gltf.d.ts +0 -0
  108. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/gltf.js +0 -0
  109. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/index.d.ts +0 -0
  110. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/index.js +0 -0
  111. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/vehicle.d.ts +0 -0
  112. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/collider/vehicle.js +0 -0
  113. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/index.d.ts +0 -0
  114. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/index.js +0 -0
  115. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/type.d.ts +0 -0
  116. /package/dist/{src/gaesup → gaesup}/initial/gaesupWorld/type.js +0 -0
  117. /package/dist/{src/gaesup → gaesup}/initial/index.d.ts +0 -0
  118. /package/dist/{src/gaesup → gaesup}/initial/index.js +0 -0
  119. /package/dist/{src/gaesup → gaesup}/physics/airplane/currentSetting.d.ts +0 -0
  120. /package/dist/{src/gaesup → gaesup}/physics/airplane/currentSetting.js +0 -0
  121. /package/dist/{src/gaesup → gaesup}/physics/airplane/damping.d.ts +0 -0
  122. /package/dist/{src/gaesup → gaesup}/physics/airplane/damping.js +0 -0
  123. /package/dist/{src/gaesup → gaesup}/physics/airplane/direction.d.ts +0 -0
  124. /package/dist/{src/gaesup → gaesup}/physics/airplane/direction.js +0 -0
  125. /package/dist/{src/gaesup → gaesup}/physics/airplane/gravity.d.ts +0 -0
  126. /package/dist/{src/gaesup → gaesup}/physics/airplane/gravity.js +0 -0
  127. /package/dist/{src/gaesup → gaesup}/physics/airplane/impulse.d.ts +0 -0
  128. /package/dist/{src/gaesup → gaesup}/physics/airplane/impulse.js +0 -0
  129. /package/dist/{src/gaesup → gaesup}/physics/airplane/index.d.ts +0 -0
  130. /package/dist/{src/gaesup → gaesup}/physics/airplane/index.js +0 -0
  131. /package/dist/{src/gaesup → gaesup}/physics/airplane/turn.d.ts +0 -0
  132. /package/dist/{src/gaesup → gaesup}/physics/airplane/turn.js +0 -0
  133. /package/dist/{src/gaesup → gaesup}/physics/character/accelaration.d.ts +0 -0
  134. /package/dist/{src/gaesup → gaesup}/physics/character/accelaration.js +0 -0
  135. /package/dist/{src/gaesup → gaesup}/physics/character/currentSetting.d.ts +0 -0
  136. /package/dist/{src/gaesup → gaesup}/physics/character/currentSetting.js +0 -0
  137. /package/dist/{src/gaesup → gaesup}/physics/character/damping.d.ts +0 -0
  138. /package/dist/{src/gaesup → gaesup}/physics/character/damping.js +0 -0
  139. /package/dist/{src/gaesup → gaesup}/physics/character/direction.d.ts +0 -0
  140. /package/dist/{src/gaesup → gaesup}/physics/character/direction.js +0 -0
  141. /package/dist/{src/gaesup → gaesup}/physics/character/impulse.d.ts +0 -0
  142. /package/dist/{src/gaesup → gaesup}/physics/character/impulse.js +0 -0
  143. /package/dist/{src/gaesup → gaesup}/physics/character/index.d.ts +0 -0
  144. /package/dist/{src/gaesup → gaesup}/physics/character/index.js +0 -0
  145. /package/dist/{src/gaesup → gaesup}/physics/character/jump.d.ts +0 -0
  146. /package/dist/{src/gaesup → gaesup}/physics/character/jump.js +0 -0
  147. /package/dist/{src/gaesup → gaesup}/physics/character/stabilizing.d.ts +0 -0
  148. /package/dist/{src/gaesup → gaesup}/physics/character/stabilizing.js +0 -0
  149. /package/dist/{src/gaesup → gaesup}/physics/character/turn.d.ts +0 -0
  150. /package/dist/{src/gaesup → gaesup}/physics/character/turn.js +0 -0
  151. /package/dist/{src/gaesup → gaesup}/physics/check/ground.d.ts +0 -0
  152. /package/dist/{src/gaesup → gaesup}/physics/check/ground.js +0 -0
  153. /package/dist/{src/gaesup → gaesup}/physics/check/index.d.ts +0 -0
  154. /package/dist/{src/gaesup → gaesup}/physics/check/index.js +0 -0
  155. /package/dist/{src/gaesup → gaesup}/physics/check/moving.d.ts +0 -0
  156. /package/dist/{src/gaesup → gaesup}/physics/check/moving.js +0 -0
  157. /package/dist/{src/gaesup → gaesup}/physics/check/rotate.d.ts +0 -0
  158. /package/dist/{src/gaesup → gaesup}/physics/check/rotate.js +0 -0
  159. /package/dist/{src/gaesup → gaesup}/physics/check/slope.d.ts +0 -0
  160. /package/dist/{src/gaesup → gaesup}/physics/check/slope.js +0 -0
  161. /package/dist/{src/gaesup → gaesup}/physics/index.d.ts +0 -0
  162. /package/dist/{src/gaesup → gaesup}/physics/index.js +0 -0
  163. /package/dist/{src/gaesup → gaesup}/physics/type.d.ts +0 -0
  164. /package/dist/{src/gaesup → gaesup}/physics/type.js +0 -0
  165. /package/dist/{src/gaesup → gaesup}/physics/vehicle/currentSetting.d.ts +0 -0
  166. /package/dist/{src/gaesup → gaesup}/physics/vehicle/currentSetting.js +0 -0
  167. /package/dist/{src/gaesup → gaesup}/physics/vehicle/damping.d.ts +0 -0
  168. /package/dist/{src/gaesup → gaesup}/physics/vehicle/damping.js +0 -0
  169. /package/dist/{src/gaesup → gaesup}/physics/vehicle/direction.d.ts +0 -0
  170. /package/dist/{src/gaesup → gaesup}/physics/vehicle/direction.js +0 -0
  171. /package/dist/{src/gaesup → gaesup}/physics/vehicle/impulse.d.ts +0 -0
  172. /package/dist/{src/gaesup → gaesup}/physics/vehicle/impulse.js +0 -0
  173. /package/dist/{src/gaesup → gaesup}/physics/vehicle/index.d.ts +0 -0
  174. /package/dist/{src/gaesup → gaesup}/physics/vehicle/index.js +0 -0
  175. /package/dist/{src/gaesup → gaesup}/physics/vehicle/turn.d.ts +0 -0
  176. /package/dist/{src/gaesup → gaesup}/physics/vehicle/turn.js +0 -0
  177. /package/dist/{src/gaesup → gaesup}/styles.css.d.ts +0 -0
  178. /package/dist/{src/gaesup → gaesup}/styles.css.js +0 -0
  179. /package/dist/{src/gaesup → gaesup}/tools/context.d.ts +0 -0
  180. /package/dist/{src/gaesup → gaesup}/tools/context.js +0 -0
  181. /package/dist/{src/gaesup → gaesup}/tools/gameboy/GameBoyButton.d.ts +0 -0
  182. /package/dist/{src/gaesup → gaesup}/tools/gameboy/GameBoyButton.js +0 -0
  183. /package/dist/{src/gaesup → gaesup}/tools/gameboy/default.d.ts +0 -0
  184. /package/dist/{src/gaesup → gaesup}/tools/gameboy/default.js +0 -0
  185. /package/dist/{src/gaesup → gaesup}/tools/gameboy/index.d.ts +0 -0
  186. /package/dist/{src/gaesup → gaesup}/tools/gameboy/index.js +0 -0
  187. /package/dist/{src/gaesup → gaesup}/tools/gameboy/style.css.d.ts +0 -0
  188. /package/dist/{src/gaesup → gaesup}/tools/gameboy/style.css.js +0 -0
  189. /package/dist/{src/gaesup → gaesup}/tools/gameboy/type.d.ts +0 -0
  190. /package/dist/{src/gaesup → gaesup}/tools/gameboy/type.js +0 -0
  191. /package/dist/{src/gaesup → gaesup}/tools/gamepad/GamePadButton.d.ts +0 -0
  192. /package/dist/{src/gaesup → gaesup}/tools/gamepad/GamePadButton.js +0 -0
  193. /package/dist/{src/gaesup → gaesup}/tools/gamepad/default.d.ts +0 -0
  194. /package/dist/{src/gaesup → gaesup}/tools/gamepad/default.js +0 -0
  195. /package/dist/{src/gaesup → gaesup}/tools/gamepad/index.d.ts +0 -0
  196. /package/dist/{src/gaesup → gaesup}/tools/gamepad/index.js +0 -0
  197. /package/dist/{src/gaesup → gaesup}/tools/gamepad/style.css.d.ts +0 -0
  198. /package/dist/{src/gaesup → gaesup}/tools/gamepad/style.css.js +0 -0
  199. /package/dist/{src/gaesup → gaesup}/tools/gamepad/type.d.ts +0 -0
  200. /package/dist/{src/gaesup → gaesup}/tools/gamepad/type.js +0 -0
  201. /package/dist/{src/gaesup → gaesup}/tools/index.d.ts +0 -0
  202. /package/dist/{src/gaesup → gaesup}/tools/index.js +0 -0
  203. /package/dist/{src/gaesup → gaesup}/tools/joystick/default.d.ts +0 -0
  204. /package/dist/{src/gaesup → gaesup}/tools/joystick/default.js +0 -0
  205. /package/dist/{src/gaesup → gaesup}/tools/joystick/index.d.ts +0 -0
  206. /package/dist/{src/gaesup → gaesup}/tools/joystick/index.js +0 -0
  207. /package/dist/{src/gaesup → gaesup}/tools/joystick/style.css.d.ts +0 -0
  208. /package/dist/{src/gaesup → gaesup}/tools/joystick/style.css.js +0 -0
  209. /package/dist/{src/gaesup → gaesup}/tools/joystick/type.d.ts +0 -0
  210. /package/dist/{src/gaesup → gaesup}/tools/joystick/type.js +0 -0
  211. /package/dist/{src/gaesup → gaesup}/tools/jumpPoint/index.d.ts +0 -0
  212. /package/dist/{src/gaesup → gaesup}/tools/jumpPoint/index.js +0 -0
  213. /package/dist/{src/gaesup → gaesup}/tools/jumpPoint/style.css.d.ts +0 -0
  214. /package/dist/{src/gaesup → gaesup}/tools/jumpPoint/style.css.js +0 -0
  215. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/constant.d.ts +0 -0
  216. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/constant.js +0 -0
  217. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/default.d.ts +0 -0
  218. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/default.js +0 -0
  219. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/index.d.ts +0 -0
  220. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/index.js +0 -0
  221. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/style.css.d.ts +0 -0
  222. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/style.css.js +0 -0
  223. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/type.d.ts +0 -0
  224. /package/dist/{src/gaesup → gaesup}/tools/keyBoardToolTip/type.js +0 -0
  225. /package/dist/{src/gaesup → gaesup}/tools/minimap/default.d.ts +0 -0
  226. /package/dist/{src/gaesup → gaesup}/tools/minimap/default.js +0 -0
  227. /package/dist/{src/gaesup → gaesup}/tools/minimap/index.d.ts +0 -0
  228. /package/dist/{src/gaesup → gaesup}/tools/minimap/index.js +0 -0
  229. /package/dist/{src/gaesup → gaesup}/tools/minimap/style.css.d.ts +0 -0
  230. /package/dist/{src/gaesup → gaesup}/tools/minimap/style.css.js +0 -0
  231. /package/dist/{src/gaesup → gaesup}/tools/minimap/type.d.ts +0 -0
  232. /package/dist/{src/gaesup → gaesup}/tools/minimap/type.js +0 -0
  233. /package/dist/{src/gaesup → gaesup}/tools/pushKey/index.d.ts +0 -0
  234. /package/dist/{src/gaesup → gaesup}/tools/pushKey/index.js +0 -0
  235. /package/dist/{src/gaesup → gaesup}/tools/reducer.d.ts +0 -0
  236. /package/dist/{src/gaesup → gaesup}/tools/reducer.js +0 -0
  237. /package/dist/{src/gaesup → gaesup}/tools/style.css.d.ts +0 -0
  238. /package/dist/{src/gaesup → gaesup}/tools/style.css.js +0 -0
  239. /package/dist/{src/gaesup → gaesup}/tools/type.d.ts +0 -0
  240. /package/dist/{src/gaesup → gaesup}/tools/type.js +0 -0
  241. /package/dist/{src/gaesup → gaesup}/utils/constant.d.ts +0 -0
  242. /package/dist/{src/gaesup → gaesup}/utils/constant.js +0 -0
  243. /package/dist/{src/gaesup → gaesup}/utils/index.d.ts +0 -0
  244. /package/dist/{src/gaesup → gaesup}/utils/index.js +0 -0
  245. /package/dist/{src/gaesup → gaesup}/utils/ray.d.ts +0 -0
  246. /package/dist/{src/gaesup → gaesup}/utils/ray.js +0 -0
  247. /package/dist/{src/gaesup → gaesup}/utils/ref.d.ts +0 -0
  248. /package/dist/{src/gaesup → gaesup}/utils/ref.js +0 -0
  249. /package/dist/{src/gaesup → gaesup}/utils/vector.d.ts +0 -0
  250. /package/dist/{src/gaesup → gaesup}/utils/vector.js +0 -0
  251. /package/dist/{src/gaesup → gaesup}/world/context/index.d.ts +0 -0
  252. /package/dist/{src/gaesup → gaesup}/world/context/index.js +0 -0
  253. /package/dist/{src/gaesup → gaesup}/world/context/reducer.d.ts +0 -0
  254. /package/dist/{src/gaesup → gaesup}/world/context/reducer.js +0 -0
  255. /package/dist/{src/gaesup → gaesup}/world/context/type.d.ts +0 -0
  256. /package/dist/{src/gaesup → gaesup}/world/context/type.js +0 -0
  257. /package/dist/{src/gaesup → gaesup}/world/index.d.ts +0 -0
  258. /package/dist/{src/gaesup → gaesup}/world/index.js +0 -0
  259. /package/dist/{src/gaesup → gaesup}/world/type.d.ts +0 -0
  260. /package/dist/{src/gaesup → gaesup}/world/type.js +0 -0
  261. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
  262. /package/dist/{src/index.js → index.js} +0 -0
  263. /package/dist/{src/styles → styles}/constants/boxshadow.css.d.ts +0 -0
  264. /package/dist/{src/styles → styles}/constants/boxshadow.css.js +0 -0
  265. /package/dist/{src/styles → styles}/constants/constant.css.d.ts +0 -0
  266. /package/dist/{src/styles → styles}/constants/constant.css.js +0 -0
  267. /package/dist/{src/styles → styles}/constants/direction.css.d.ts +0 -0
  268. /package/dist/{src/styles → styles}/constants/direction.css.js +0 -0
  269. /package/dist/{src/styles → styles}/constants/flex.css.d.ts +0 -0
  270. /package/dist/{src/styles → styles}/constants/flex.css.js +0 -0
  271. /package/dist/{src/styles → styles}/constants/gradient.css.d.ts +0 -0
  272. /package/dist/{src/styles → styles}/constants/gradient.css.js +0 -0
  273. /package/dist/{src/styles → styles}/constants/grid.css.d.ts +0 -0
  274. /package/dist/{src/styles → styles}/constants/grid.css.js +0 -0
  275. /package/dist/{src/styles → styles}/constants/palette.css.d.ts +0 -0
  276. /package/dist/{src/styles → styles}/constants/palette.css.js +0 -0
  277. /package/dist/{src/styles → styles}/constants/translate.css.d.ts +0 -0
  278. /package/dist/{src/styles → styles}/constants/translate.css.js +0 -0
  279. /package/dist/{examples/select → styles}/global.css.d.ts +0 -0
  280. /package/dist/{src/styles → styles}/global.css.js +0 -0
  281. /package/dist/{src/styles → styles}/recipe/base.css.d.ts +0 -0
  282. /package/dist/{src/styles → styles}/recipe/base.css.js +0 -0
  283. /package/dist/{src/styles → styles}/recipe/button.css.d.ts +0 -0
  284. /package/dist/{src/styles → styles}/recipe/button.css.js +0 -0
  285. /package/dist/{src/styles → styles}/recipe/index.css.d.ts +0 -0
  286. /package/dist/{src/styles → styles}/recipe/index.css.js +0 -0
  287. /package/dist/{src/styles → styles}/recipe/input.css.d.ts +0 -0
  288. /package/dist/{src/styles → styles}/recipe/input.css.js +0 -0
  289. /package/dist/{src/styles → styles}/sprinkles/color.css.d.ts +0 -0
  290. /package/dist/{src/styles → styles}/sprinkles/color.css.js +0 -0
  291. /package/dist/{src/styles → styles}/sprinkles/direction.css.d.ts +0 -0
  292. /package/dist/{src/styles → styles}/sprinkles/direction.css.js +0 -0
  293. /package/dist/{src/styles → styles}/sprinkles/display.css.d.ts +0 -0
  294. /package/dist/{src/styles → styles}/sprinkles/display.css.js +0 -0
  295. /package/dist/{src/styles → styles}/sprinkles/fontSize.css.d.ts +0 -0
  296. /package/dist/{src/styles → styles}/sprinkles/fontSize.css.js +0 -0
  297. /package/dist/{src/styles → styles}/sprinkles/grid.css.d.ts +0 -0
  298. /package/dist/{src/styles → styles}/sprinkles/grid.css.js +0 -0
  299. /package/dist/{src/styles → styles}/sprinkles/index.css.d.ts +0 -0
  300. /package/dist/{src/styles → styles}/sprinkles/index.css.js +0 -0
  301. /package/dist/{src/styles → styles}/sprinkles/margin.css.d.ts +0 -0
  302. /package/dist/{src/styles → styles}/sprinkles/margin.css.js +0 -0
  303. /package/dist/{src/styles → styles}/sprinkles/padding.css.d.ts +0 -0
  304. /package/dist/{src/styles → styles}/sprinkles/padding.css.js +0 -0
  305. /package/dist/{src/styles → styles}/sprinkles/position.css.d.ts +0 -0
  306. /package/dist/{src/styles → styles}/sprinkles/position.css.js +0 -0
  307. /package/dist/{src/styles → styles}/sprinkles/size.css.d.ts +0 -0
  308. /package/dist/{src/styles → styles}/sprinkles/size.css.js +0 -0
  309. /package/dist/{src/styles → styles}/theme.css.d.ts +0 -0
  310. /package/dist/{src/styles → styles}/theme.css.js +0 -0
package/lib/index.ts ADDED
@@ -0,0 +1,10 @@
1
+ import * as pluralize from "pluralize";
2
+
3
+ /**
4
+ * @Method: Returns the plural form of any noun.
5
+ * @Param: {string}
6
+ * @Return: {string}
7
+ */
8
+ export function getPlural(str: any): string {
9
+ return pluralize.plural(str);
10
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "type": "module",
5
5
  "homepage": "https://jigglypop.github.io/gaesup-world/",
6
6
  "scripts": {
@@ -14,35 +14,24 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@dimforge/rapier3d": "^0.11.2",
17
- "@emotion/react": "^11.11.1",
18
17
  "@mdx-js/loader": "^3.0.0",
19
18
  "@mdx-js/react": "^3.0.0",
20
- "@next/mdx": "^14.0.1",
21
- "@react-icons/all-files": "^4.1.0",
22
19
  "@react-three/drei": "9.88.11",
23
20
  "@react-three/fiber": "8.15.9",
24
- "@react-three/postprocessing": "^2.15.10",
25
21
  "@react-three/rapier": "^1.1.2",
26
22
  "@types/three": "^0.158.1",
27
23
  "@types/uuid": "^9.0.6",
28
- "@uiw/react-md-editor": "3.25.2",
29
- "@use-gesture/react": "^10.3.0",
30
24
  "@vanilla-extract/babel-plugin": "^1.2.0",
31
25
  "@vanilla-extract/css": "^1.13.0",
32
26
  "@vanilla-extract/css-utils": "^0.1.3",
33
27
  "@vanilla-extract/dynamic": "^2.0.3",
34
- "@vanilla-extract/next-plugin": "^2.3.1",
35
28
  "@vanilla-extract/recipes": "^0.5.0",
36
29
  "@vanilla-extract/sprinkles": "^1.6.1",
37
- "@zeit/next-bundle-analyzer": "0.1.2",
38
30
  "css-loader": "^6.8.1",
39
31
  "gh-pages": "^6.1.0",
40
- "lamina": "^1.1.23",
41
32
  "leva": "0.9.35",
42
- "lodash": "4.17.21",
43
- "next-compose": "0.0.2",
44
- "next-remove-imports": "1.0.12",
45
33
  "node-fetch": "3.3.2",
34
+ "pluralize": "^8.0.0",
46
35
  "r3f-perf": "7.1.2",
47
36
  "react": "^18.2.0",
48
37
  "react-device-detect": "^2.2.3",
@@ -51,6 +40,7 @@
51
40
  "three": "^0.158.0"
52
41
  },
53
42
  "devDependencies": {
43
+ "@types/pluralize": "^0.0.33",
54
44
  "@types/react": "^18.2.37",
55
45
  "@types/react-dom": "^18.2.15",
56
46
  "@typescript-eslint/eslint-plugin": "^6.10.0",
package/tsconfig.json CHANGED
@@ -12,11 +12,12 @@
12
12
  "moduleResolution": "node",
13
13
  "resolveJsonModule": true,
14
14
  "isolatedModules": true,
15
- "noEmit": false,
15
+ // publish options
16
16
  "jsx": "react-jsx",
17
+ "noEmit": false,
17
18
  "declaration": true,
18
19
  "outDir": "./dist"
19
20
  },
20
- "include": ["./src/**/*.tsx", "./src/**/*.ts", "src", "examples"],
21
+ "include": ["./src/**/*.tsx", "./src/**/*.ts", "src"],
21
22
  "references": [{ "path": "./tsconfig.node.json" }]
22
23
  }
@@ -1,2 +0,0 @@
1
- import "./global.css";
2
- export default function App(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import "./global.css";
3
- import Selected from "./src";
4
- export default function App() {
5
- return _jsx(Selected, {});
6
- }
@@ -1,71 +0,0 @@
1
- import { globalStyle } from "@vanilla-extract/css";
2
- import { vars } from "../../src/styles/theme.css";
3
- globalStyle(":root", {
4
- background: vars.themes.background,
5
- color: vars.themes.text.normal,
6
- });
7
- globalStyle("html", {
8
- boxSizing: "border-box",
9
- fontSize: "62.5%",
10
- maxWidth: "100%",
11
- overflowX: "hidden",
12
- padding: 0,
13
- });
14
- globalStyle("body", {
15
- overflow: "hidden",
16
- position: "fixed",
17
- margin: 0,
18
- padding: 0,
19
- });
20
- globalStyle("*, *::before, *::after", {
21
- boxSizing: "border-box",
22
- });
23
- globalStyle("a", {
24
- cursor: "pointer",
25
- textDecoration: "none",
26
- color: "inherit",
27
- });
28
- globalStyle("input, input:focus", {
29
- border: "none",
30
- borderRight: "0px",
31
- borderTop: "0px",
32
- borderLeft: "0px",
33
- borderBottom: "0px",
34
- outline: "none",
35
- WebkitAppearance: "none",
36
- MozAppearance: "none",
37
- appearance: "none",
38
- });
39
- globalStyle("button, button:focus", {
40
- border: "none",
41
- outline: "none",
42
- });
43
- globalStyle("input::-ms-clear", {
44
- display: "none",
45
- });
46
- globalStyle('input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button', {
47
- WebkitAppearance: "none",
48
- MozAppearance: "none",
49
- appearance: "none",
50
- });
51
- globalStyle('input[type="password"]::-ms-reveal, input[type="password"]::-ms-clear', {
52
- display: "none",
53
- });
54
- // 스크롤
55
- globalStyle("::-webkit-scrollbar", {
56
- width: "1.8rem",
57
- });
58
- globalStyle("::-webkit-scrollbar-thumb", {
59
- background: vars.gradient.purple,
60
- borderRadius: "1rem",
61
- border: "0.4rem solid transparent",
62
- backgroundClip: "padding-box",
63
- });
64
- globalStyle("::-webkit-scrollbar-track", {
65
- WebkitBackdropFilter: "blur(10px)",
66
- backdropFilter: "blur(10px)",
67
- });
68
- globalStyle("input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active", {
69
- transition: "background-color 10000s",
70
- WebkitTextFillColor: "black !important",
71
- });
@@ -1 +0,0 @@
1
- import "./style.css";
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import React from "react";
3
- import ReactDOM from "react-dom/client";
4
- import App from "./App";
5
- import "./style.css";
6
- ReactDOM.createRoot(document.getElementById("root")).render(_jsx(React.StrictMode, { children: _jsx(App, {}) }));
@@ -1 +0,0 @@
1
- export declare const ControlledInput: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -1,29 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { useEffect, useRef, useState } from "react";
14
- import * as style from "./style.css";
15
- export const ControlledInput = (props) => {
16
- const { value, onChange } = props, rest = __rest(props, ["value", "onChange"]);
17
- const [cursor, setCursor] = useState(null);
18
- const ref = useRef(null);
19
- useEffect(() => {
20
- const input = ref.current;
21
- if (input)
22
- input.setSelectionRange(cursor, cursor);
23
- }, [ref, cursor, value]);
24
- const handleChange = (e) => {
25
- setCursor(e.target.selectionStart);
26
- onChange && onChange(e);
27
- };
28
- return (_jsx("input", Object.assign({ ref: ref, value: value, onChange: handleChange }, rest, { className: style.input })));
29
- };
@@ -1,8 +0,0 @@
1
- import * as THREE from "three";
2
- export type dynamicType = {
3
- time: number | null;
4
- X: THREE.Vector3;
5
- Y: THREE.Vector3;
6
- Qt: THREE.Quaternion;
7
- };
8
- export default function DynamicPlatforms(): import("react/jsx-runtime").JSX.Element;
@@ -1,48 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Text } from "@react-three/drei";
4
- import { useFrame } from "@react-three/fiber";
5
- import { CuboidCollider, CylinderCollider, RigidBody, } from "@react-three/rapier";
6
- import { useMemo, useRef } from "react";
7
- import GaeSupProps from "../../../src/gaesup/gaesupProps";
8
- import { Qt, V3 } from "../../../src/gaesup/utils/vector";
9
- export default function DynamicPlatforms() {
10
- const sideMovePlatformRef = useRef(null);
11
- const verticalMovePlatformRef = useRef(null);
12
- const rotatePlatformRef = useRef(null);
13
- const rotationDrumRef = useRef(null);
14
- // Initializ animation settings
15
- const dynamic = useMemo(() => {
16
- return {
17
- time: null,
18
- X: V3(1, 0, 0),
19
- Y: V3(0, 1, 0),
20
- Qt: Qt(),
21
- };
22
- }, []);
23
- useFrame((state) => {
24
- var _a, _b, _c, _d, _e;
25
- dynamic.time = state.clock.elapsedTime;
26
- const { time, Qt, X, Y } = dynamic;
27
- if (dynamic.time) {
28
- // Move platform
29
- (_a = sideMovePlatformRef.current) === null || _a === void 0 ? void 0 : _a.setNextKinematicTranslation({
30
- x: 5 * Math.sin(time / 2) - 12,
31
- y: -0.5,
32
- z: -10,
33
- });
34
- // Elevate platform
35
- (_b = verticalMovePlatformRef.current) === null || _b === void 0 ? void 0 : _b.setNextKinematicTranslation({
36
- x: -25,
37
- y: 2 * Math.sin(time / 2) + 2,
38
- z: 0,
39
- });
40
- (_c = verticalMovePlatformRef.current) === null || _c === void 0 ? void 0 : _c.setNextKinematicRotation(Qt.setFromAxisAngle(Y, time * 0.5));
41
- // Rotate platform
42
- (_d = rotatePlatformRef.current) === null || _d === void 0 ? void 0 : _d.setNextKinematicRotation(Qt.setFromAxisAngle(Y, time * 0.5));
43
- // Rotate drum
44
- (_e = rotationDrumRef.current) === null || _e === void 0 ? void 0 : _e.setNextKinematicRotation(Qt.setFromAxisAngle(X, time * 0.5));
45
- }
46
- });
47
- return (_jsxs(GaeSupProps, { text: "dynamic", jumpPoint: true, position: [-10, 0, -10], children: [_jsxs(RigidBody, { type: "kinematicPosition", ref: sideMovePlatformRef, colliders: false, children: [_jsx(Text, { scale: 0.5, color: "black", maxWidth: 10, textAlign: "center", position: [0, 2.5, 0], children: "Kinematic Moving Platform" }), _jsx(CuboidCollider, { args: [2.5, 0.1, 2.5] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [5, 0.2, 5] }), _jsx("meshStandardMaterial", { color: "moccasin" })] })] }), _jsxs(RigidBody, { type: "kinematicPosition", position: [-25, 0, 0], ref: verticalMovePlatformRef, colliders: false, children: [_jsx(Text, { scale: 0.5, color: "black", maxWidth: 10, textAlign: "center", position: [0, 2.5, 0], rotation: [0, Math.PI / 2, 0], children: "Kinematic Elevating Platform" }), _jsx(CuboidCollider, { args: [2.5, 0.1, 2.5] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [5, 0.2, 5] }), _jsx("meshStandardMaterial", { color: "moccasin" })] })] }), _jsxs(RigidBody, { type: "kinematicPosition", position: [-25, -0.5, -10], ref: rotatePlatformRef, colliders: false, children: [_jsx(Text, { scale: 0.5, color: "black", maxWidth: 10, textAlign: "center", position: [0, 2.5, 0], children: "Kinematic Rotating Platform" }), _jsx(CuboidCollider, { args: [2.5, 0.1, 2.5] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [5, 0.2, 5] }), _jsx("meshStandardMaterial", { color: "moccasin" })] })] }), _jsx(Text, { scale: 0.5, color: "black", maxWidth: 10, textAlign: "center", position: [-15, 2.5, -15], children: "Kinematic Rotating Drum" }), _jsx(RigidBody, { colliders: false, type: "kinematicPosition", position: [-15, -1, -15], ref: rotationDrumRef, children: _jsxs("group", { rotation: [0, 0, Math.PI / 2], children: [_jsx(CylinderCollider, { args: [5, 1] }), _jsxs("mesh", { receiveShadow: true, children: [_jsx("cylinderGeometry", { args: [1, 1, 10] }), _jsx("meshStandardMaterial", { color: "moccasin" })] })] }) })] }));
48
- }
@@ -1,14 +0,0 @@
1
- import { Ray, RayColliderToi } from "@dimforge/rapier3d-compat";
2
- import * as THREE from "three";
3
- export type rayType = {
4
- origin: THREE.Vector3;
5
- dir: THREE.Vector3;
6
- offset: THREE.Vector3;
7
- springDir: THREE.Vector3;
8
- velocity: THREE.Vector3;
9
- hit: RayColliderToi | null;
10
- parent: THREE.Object3D | null;
11
- rayCast: Ray | null;
12
- length: number;
13
- };
14
- export default function FloatMove(): import("react/jsx-runtime").JSX.Element;
@@ -1,60 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { useFrame } from "@react-three/fiber";
3
- import { CuboidCollider, RigidBody, useRapier, vec3, } from "@react-three/rapier";
4
- import { useEffect, useMemo, useRef } from "react";
5
- import GaeSupProps from "../../../src/gaesup/gaesupProps";
6
- export default function FloatMove() {
7
- // Preset
8
- const cuboidColliderRef = useRef(null);
9
- const rigidBodyRef = useRef(null);
10
- const { rapier, world } = useRapier();
11
- const ray = useMemo(() => {
12
- return {
13
- origin: vec3(),
14
- dir: vec3({ x: 0, y: -1, z: 0 }),
15
- offset: vec3(),
16
- springDir: vec3(),
17
- velocity: vec3(),
18
- hit: null,
19
- parent: null,
20
- rayCast: null,
21
- length: 0.8,
22
- };
23
- }, []);
24
- ray.rayCast = new rapier.Ray(ray.origin, ray.dir);
25
- let movingDir = 1;
26
- useEffect(() => {
27
- if (rigidBodyRef.current) {
28
- rigidBodyRef.current.setEnabledRotations(false, true, false, false);
29
- rigidBodyRef.current.setEnabledTranslations(true, true, false, false);
30
- }
31
- }, []);
32
- useFrame(() => {
33
- // Ray cast for moving platform
34
- if (rigidBodyRef.current && ray.rayCast && cuboidColliderRef.current) {
35
- ray.origin.set(rigidBodyRef.current.translation().x, rigidBodyRef.current.translation().y, rigidBodyRef.current.translation().z);
36
- ray.hit = world.castRay(ray.rayCast, ray.length, false, undefined, undefined, cuboidColliderRef.current, rigidBodyRef.current);
37
- // Apply moving velocity to the platform
38
- if (rigidBodyRef.current.translation().x > 10) {
39
- movingDir = -1;
40
- }
41
- else if (rigidBodyRef.current.translation().x < -5) {
42
- movingDir = 1;
43
- }
44
- if (movingDir > 0) {
45
- rigidBodyRef.current.setLinvel(ray.velocity.set(2, rigidBodyRef.current.linvel().y, 0), false);
46
- }
47
- else {
48
- rigidBodyRef.current.setLinvel(ray.velocity.set(-2, rigidBodyRef.current.linvel().y, 0), false);
49
- }
50
- }
51
- // Ray for moving platform
52
- if (ray.hit && rigidBodyRef.current) {
53
- if (ray.hit.collider.parent()) {
54
- const floatingForceMove = 2.5 * (0.8 - ray.hit.toi) - rigidBodyRef.current.linvel().y * 0.15;
55
- rigidBodyRef.current.applyImpulse(vec3().set(0, floatingForceMove, 0), true);
56
- }
57
- }
58
- });
59
- return (_jsx(GaeSupProps, { text: "moving", jumpPoint: true, position: [0, 5, -17], children: _jsxs(RigidBody, { mass: 1, colliders: false, ref: rigidBodyRef, children: [_jsx(CuboidCollider, { args: [1.25, 0.1, 1.25], ref: cuboidColliderRef }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [2.5, 0.2, 2.5] }), _jsx("meshStandardMaterial", { color: "#d8fff6", transparent: true, opacity: 0.8 })] })] }) }));
60
- }
@@ -1 +0,0 @@
1
- export default function Floor(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { Grid, MeshReflectorMaterial } from "@react-three/drei";
4
- import { RigidBody } from "@react-three/rapier";
5
- export default function Floor() {
6
- return (_jsxs(_Fragment, { children: [_jsx(Grid, { renderOrder: -1, position: [0, -0.8, 0], infiniteGrid: true, cellSize: 1, cellThickness: 1, sectionSize: 5, sectionThickness: 1.5, sectionColor: "#212121", fadeDistance: 300 }), _jsxs(RigidBody, { type: "fixed", children: [_jsxs("mesh", { receiveShadow: true, position: [0, -3.5, 0], children: [_jsx("boxGeometry", { args: [300, 5, 300] }), _jsx("meshStandardMaterial", { color: "lightblue" })] }), _jsxs("mesh", { receiveShadow: true, position: [0, -0.9, 0], rotation: [-Math.PI / 2, 0, 0], children: [_jsx("planeGeometry", { args: [300, 300] }), _jsx(MeshReflectorMaterial, { mirror: 0, blur: [300, 100], resolution: 2048, mixBlur: 1, mixStrength: 80, roughness: 1, depthScale: 1.2, minDepthThreshold: 0.4, maxDepthThreshold: 1.4, color: "#212121", metalness: 0.5 })] })] })] }));
7
- }
@@ -1 +0,0 @@
1
- export default function RigidObjects(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { BallCollider, CuboidCollider, CylinderCollider, RigidBody, } from "@react-three/rapier";
4
- import GaeSupProps from "../../../src/gaesup/gaesupProps";
5
- export default function RigidObjects() {
6
- return (_jsxs(GaeSupProps, { text: "RigidObjects", jumpPoint: true, position: [15, 1, 2], children: [_jsx(RigidBody, { position: [15, 1, 2], children: _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [0.5, 0.5, 0.5] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] }) }), _jsx(RigidBody, { position: [15.1, 0, 2], children: _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [0.5, 0.5, 0.5] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] }) }), _jsxs(RigidBody, { position: [15, 0, 0], colliders: false, children: [_jsx(CuboidCollider, { args: [0.5, 0.5, 0.5] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [1, 1, 1] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] })] }), _jsxs(RigidBody, { position: [15, 0, -2], colliders: false, children: [_jsx(CuboidCollider, { args: [1.5 / 2, 1.5 / 2, 1.5 / 2] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [1.5, 1.5, 1.5] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] })] }), _jsxs(RigidBody, { position: [15, 0, -5], colliders: false, children: [_jsx(CuboidCollider, { args: [1, 1, 1] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [2, 2, 2] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] })] }), _jsxs(RigidBody, { colliders: false, position: [15, 5, -10], children: [_jsx(CylinderCollider, { args: [0.03, 2.5], position: [0, 0.25, 0] }), _jsx(BallCollider, { args: [0.25] }), _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("cylinderGeometry", { args: [2.5, 0.2, 0.5] }), _jsx("meshStandardMaterial", { color: "lightsteelblue" })] })] })] }));
7
- }
@@ -1 +0,0 @@
1
- export default function RoughPlane(): import("react/jsx-runtime").JSX.Element;
@@ -1,20 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useGLTF } from "@react-three/drei";
4
- import { RigidBody } from "@react-three/rapier";
5
- import { useEffect } from "react";
6
- import * as THREE from "three";
7
- import GaeSupProps from "../../../src/gaesup/gaesupProps";
8
- import { S3 } from "../../../src/gaesup/utils/constant";
9
- export default function RoughPlane() {
10
- const roughPlane = useGLTF(S3 + "/roughPlane.glb");
11
- useEffect(() => {
12
- roughPlane.scene.traverse((child) => {
13
- if (child instanceof THREE.Mesh &&
14
- child.material instanceof THREE.MeshStandardMaterial) {
15
- child.receiveShadow = true;
16
- }
17
- });
18
- }, []);
19
- return (_jsx(GaeSupProps, { text: "RoughPlane", jumpPoint: true, position: [10, -1, 10], children: _jsx(RigidBody, { type: "fixed", colliders: "trimesh", children: _jsx("primitive", { object: roughPlane.scene }) }) }));
20
- }
@@ -1 +0,0 @@
1
- export default function Slopes(): import("react/jsx-runtime").JSX.Element;
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Html, useGLTF } from "@react-three/drei";
4
- import { RigidBody } from "@react-three/rapier";
5
- import { useEffect, useRef, useState } from "react";
6
- import * as THREE from "three";
7
- import GaeSupProps from "../../../src/gaesup/gaesupProps";
8
- import { S3 } from "../../../src/gaesup/utils/constant";
9
- import { ControlledInput } from "./ControlledInput";
10
- export default function Slopes() {
11
- // Load models
12
- const slopes = useGLTF(S3 + "/slopes.glb");
13
- const [angle, setAngle] = useState(25);
14
- const rigidBodyRef = useRef(null);
15
- useEffect(() => {
16
- // Receive Shadows
17
- slopes.scene.traverse((child) => {
18
- if (child instanceof THREE.Mesh &&
19
- child.material instanceof THREE.MeshStandardMaterial) {
20
- child.receiveShadow = true;
21
- }
22
- });
23
- }, []);
24
- return (_jsxs(GaeSupProps, { text: "Slopes", jumpPoint: true, position: [-15, -0.8, 15], children: [_jsx(RigidBody, { type: "fixed", colliders: "hull", ref: rigidBodyRef, rotation: [-(angle * Math.PI) / 180, 0, 0], children: _jsxs("mesh", { receiveShadow: true, castShadow: true, children: [_jsx("boxGeometry", { args: [10, 1, 10] }), _jsx("meshBasicMaterial", { transparent: true, opacity: 0.9 })] }) }), _jsx(Html, { zIndexRange: [1, 0], children: _jsx(ControlledInput, { type: angle, onChange: (e) => setAngle(e.target.value), value: angle }) })] }));
25
- }
@@ -1 +0,0 @@
1
- export declare const input: string;
@@ -1,11 +0,0 @@
1
- import { style } from "@vanilla-extract/css";
2
- export const input = style([
3
- {
4
- width: "20rem",
5
- borderRadius: "1rem",
6
- backgroundColor: "rgba(0, 0, 0, 0.5)",
7
- padding: "1rem 2rem",
8
- color: "white",
9
- boxShadow: "0 0 1rem rgba(0, 0, 0, 0.5)",
10
- },
11
- ]);
@@ -1,5 +0,0 @@
1
- export declare const keyboardMap: {
2
- name: string;
3
- keys: string[];
4
- }[];
5
- export default function Selected(): import("react/jsx-runtime").JSX.Element;
@@ -1,117 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { Environment, KeyboardControls } from "@react-three/drei";
4
- import { Canvas } from "@react-three/fiber";
5
- import { Physics } from "@react-three/rapier";
6
- import { useState } from "react";
7
- import { isMobile } from "react-device-detect";
8
- import GaesupController from "../../../src/gaesup/controller";
9
- import GaeSupTools from "../../../src/gaesup/tools";
10
- import { S3 } from "../../../src/gaesup/utils/constant";
11
- import GaesupWorld from "../../../src/gaesup/world";
12
- import FloatMove from "../platform/FloatMove";
13
- import Floor from "../platform/Floor";
14
- import RigidObjects from "../platform/RigidObjects";
15
- import RoughPlane from "../platform/RoughPlane";
16
- import * as style from "./style.css";
17
- import { button } from "./style.css";
18
- export const keyboardMap = [
19
- { name: "forward", keys: ["ArrowUp", "KeyW"] },
20
- { name: "backward", keys: ["ArrowDown", "KeyS"] },
21
- { name: "leftward", keys: ["ArrowLeft", "KeyA"] },
22
- { name: "rightward", keys: ["ArrowRight", "KeyD"] },
23
- { name: "space", keys: ["Space"] },
24
- { name: "shift", keys: ["Shift"] },
25
- { name: "keyZ", keys: ["KeyZ"] },
26
- ];
27
- export default function Selected() {
28
- const CHARACTER_URL = "./gaesupyee.glb";
29
- const AIRPLANE_URL = "./airplane.glb";
30
- const VEHICLE_URL = S3 + "/kart2.glb";
31
- const [mode, changeMode] = useState({
32
- type: "character",
33
- controller: isMobile ? "joystick" : "joystick",
34
- });
35
- const [camera, changeCamera] = useState({
36
- cameraType: "perspective",
37
- controlType: "orbit",
38
- });
39
- return (_jsxs(GaesupWorld, { debug: true, mode: Object.assign({}, mode), url: {
40
- characterUrl: CHARACTER_URL,
41
- vehicleUrl: VEHICLE_URL,
42
- airplaneUrl: AIRPLANE_URL,
43
- }, children: [_jsx(GaeSupTools, {}), _jsxs("div", { className: style.mainButtonContainer, children: [_jsx("button", { className: button({
44
- selected: mode.type === "character",
45
- }), onClick: () => changeMode((mode) => ({
46
- type: "character",
47
- controller: mode.controller,
48
- })), children: "CHARACTER" }), _jsx("button", { className: button({
49
- selected: mode.type === "vehicle",
50
- }), onClick: () => changeMode((mode) => ({
51
- type: "vehicle",
52
- controller: mode.controller,
53
- })), children: "VEHICLE" }), _jsx("button", { className: button({
54
- selected: mode.type === "airplane",
55
- }), onClick: () => changeMode((mode) => ({
56
- type: "airplane",
57
- controller: mode.controller,
58
- })), children: "AIRPLANE" }), _jsx("button", { className: button({
59
- selected: camera.controlType === "normal",
60
- }), onClick: () => changeCamera(() => ({
61
- cameraType: "perspective",
62
- controlType: "normal",
63
- })), children: "NORMAL" }), _jsx("button", { className: button({
64
- selected: camera.controlType === "orbit" &&
65
- camera.cameraType === "perspective",
66
- }), onClick: () => changeCamera(() => ({
67
- cameraType: "perspective",
68
- controlType: "orbit",
69
- })), children: "ORBIT" }), _jsx("button", { className: button({
70
- selected: camera.cameraType === "orthographic",
71
- }), onClick: () => {
72
- changeCamera(() => ({
73
- cameraType: "orthographic",
74
- controlType: "orbit",
75
- }));
76
- }, children: "MAP" }), !isMobile && (_jsx("button", { className: button({
77
- selected: mode.controller === "keyboard",
78
- }), onClick: () => {
79
- changeMode((mode) => ({
80
- type: mode.type,
81
- controller: "keyboard",
82
- }));
83
- }, children: "\uD0A4\uBCF4\uB4DC" })), _jsx("button", { className: button({
84
- selected: mode.controller === "joystick",
85
- }), onClick: () => {
86
- changeMode((mode) => ({
87
- type: mode.type,
88
- controller: "joystick",
89
- }));
90
- }, children: "\uC870\uC774\uC2A4\uD2F1" }), _jsx("button", { className: button({
91
- selected: mode.controller === "gameboy",
92
- }), onClick: () => {
93
- changeMode((mode) => ({
94
- type: mode.type,
95
- controller: "gameboy",
96
- }));
97
- }, children: "\uAC8C\uC784\uBCF4\uC774" })] }), _jsxs(Canvas, { shadows: true, dpr: [1, 2], style: { width: "100dvw", height: "100dvh" }, children: [_jsx(Environment, { background: true, preset: "sunset", blur: 0.8 }), _jsx("directionalLight", { castShadow: true, "shadow-normalBias": 0.06, position: [20, 30, 10], intensity: 0.5, "shadow-mapSize": [1024, 1024], "shadow-camera-near": 1, "shadow-camera-far": 50, "shadow-camera-top": 50, "shadow-camera-right": 50, "shadow-camera-bottom": -50, "shadow-camera-left": -50 }), _jsx("ambientLight", { intensity: 0.5 }), _jsxs(Physics, { debug: true, children: [_jsx(KeyboardControls, { map: keyboardMap, children: _jsx(GaesupController, { isRider: mode.type === "vehicle" ? true : false, cameraMode: Object.assign({}, camera), orthographicCamera: {
98
- zoom: 80,
99
- }, groupProps: {
100
- rotation: [0, Math.PI, 0],
101
- }, onAnimate: ({ control, states, playAnimation }) => {
102
- const { keyZ } = control;
103
- if (keyZ) {
104
- states.isAnimationOuter = true;
105
- playAnimation("greet");
106
- }
107
- else {
108
- states.isAnimationOuter = false;
109
- }
110
- } }) }), _jsx(RoughPlane, {}), _jsx(RigidObjects, {}), _jsx(FloatMove, {}), _jsx(Floor, {})] })] }), _jsx(GaeSupTools, { keyboardToolTip: {
111
- keyBoardMap: keyboardMap,
112
- keyBoardLabel: {
113
- keyZ: "GREET",
114
- space: "JUMP",
115
- },
116
- } })] }));
117
- }
@@ -1,8 +0,0 @@
1
- export declare const characterKeyboardMap: {
2
- name: string;
3
- keys: string[];
4
- }[];
5
- export declare const vehicleKeyboardMap: {
6
- name: string;
7
- keys: string[];
8
- }[];
@@ -1,18 +0,0 @@
1
- export const characterKeyboardMap = [
2
- { name: "forward", keys: ["ArrowUp", "KeyW"] },
3
- { name: "backward", keys: ["ArrowDown", "KeyS"] },
4
- { name: "leftward", keys: ["ArrowLeft", "KeyA"] },
5
- { name: "rightward", keys: ["ArrowRight", "KeyD"] },
6
- { name: "jump", keys: ["Space"] },
7
- { name: "run", keys: ["Shift"] },
8
- { name: "greet", keys: ["KeyZ"] },
9
- ];
10
- export const vehicleKeyboardMap = [
11
- { name: "forward", keys: ["ArrowUp", "KeyW"] },
12
- { name: "backward", keys: ["ArrowDown", "KeyS"] },
13
- { name: "leftward", keys: ["ArrowLeft", "KeyA"] },
14
- { name: "rightward", keys: ["ArrowRight", "KeyD"] },
15
- { name: "space", keys: ["Space"] },
16
- { name: "shift", keys: ["Shift"] },
17
- { name: "keyZ", keys: ["KeyZ"] },
18
- ];
@@ -1,4 +0,0 @@
1
- export declare const vehicleKeyboardMap: {
2
- name: string;
3
- keys: string[];
4
- }[];
@@ -1,8 +0,0 @@
1
- export const vehicleKeyboardMap = [
2
- { name: "forward", keys: ["ArrowUp", "KeyW"] },
3
- { name: "backward", keys: ["ArrowDown", "KeyS"] },
4
- { name: "leftward", keys: ["ArrowLeft", "KeyA"] },
5
- { name: "rightward", keys: ["ArrowRight", "KeyD"] },
6
- { name: "brake", keys: ["Space"] },
7
- { name: "accel", keys: ["Shift"] },
8
- ];