gaesup-world 0.6.51 → 0.6.52

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.
@@ -10,7 +10,6 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { useFrame } from "@react-three/fiber";
13
- import { useRapier } from "@react-three/rapier";
14
13
  import { useContext, useEffect } from "react";
15
14
  import { GaesupControllerContext } from "../controller/context";
16
15
  import { useGaesupGltf } from "../hooks/useGaesupGltf";
@@ -21,7 +20,6 @@ import characterCalculation from "./character";
21
20
  import check from "./check";
22
21
  import vehicleCalculation from "./vehicle";
23
22
  export default function calculation(prop) {
24
- var world = useRapier().world;
25
23
  var worldContext = useContext(GaesupWorldContext);
26
24
  var controllerContext = useContext(GaesupControllerContext);
27
25
  var dispatch = useContext(GaesupWorldDispatchContext);
@@ -46,9 +44,7 @@ export default function calculation(prop) {
46
44
  return null;
47
45
  if (block.control)
48
46
  return null;
49
- var calcProp = __assign(__assign({}, prop), { state: state, delta: delta, worldContext: worldContext, controllerContext: controllerContext, dispatch: dispatch,
50
- // world,
51
- matchSizes: getSizesByUrls(controllerContext === null || controllerContext === void 0 ? void 0 : controllerContext.urls) });
47
+ var calcProp = __assign(__assign({}, prop), { state: state, delta: delta, worldContext: worldContext, controllerContext: controllerContext, dispatch: dispatch, matchSizes: getSizesByUrls(controllerContext === null || controllerContext === void 0 ? void 0 : controllerContext.urls) });
52
48
  if (mode.type === "vehicle")
53
49
  vehicleCalculation(calcProp);
54
50
  else if (mode.type === "character")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gaesup-world",
3
- "version": "0.6.51",
3
+ "version": "0.6.52",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",