gaesup-world 0.0.72 → 0.0.73
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.
|
@@ -4,6 +4,6 @@ export default function normal(prop) {
|
|
|
4
4
|
var cameraPosition = activeState.position
|
|
5
5
|
.clone()
|
|
6
6
|
.add(V3(0, perspectiveCamera.YDistance, perspectiveCamera.XZDistance));
|
|
7
|
-
state.camera.position.lerp(cameraPosition,
|
|
7
|
+
state.camera.position.lerp(cameraPosition, 0.9);
|
|
8
8
|
state.camera.lookAt(activeState.position.clone());
|
|
9
9
|
}
|
|
@@ -19,7 +19,6 @@ import { GaesupWorldContext } from "../world/context";
|
|
|
19
19
|
import mapControl from "./control/map";
|
|
20
20
|
import normal from "./control/normal";
|
|
21
21
|
import orbit from "./control/orbit";
|
|
22
|
-
import detector from "./detector";
|
|
23
22
|
export default function Camera(_a) {
|
|
24
23
|
var refs = _a.refs, prop = _a.prop, control = _a.control;
|
|
25
24
|
var worldContext = useContext(GaesupWorldContext);
|
|
@@ -67,7 +66,7 @@ export default function Camera(_a) {
|
|
|
67
66
|
var distV3 = camera.position.clone().sub(activeState.position);
|
|
68
67
|
cameraRay.origin.copy(camera.position);
|
|
69
68
|
cameraRay.dir.copy(distV3.negate().normalize());
|
|
70
|
-
detector(cameraProp);
|
|
69
|
+
// detector(cameraProp);
|
|
71
70
|
});
|
|
72
71
|
return (_jsxs(_Fragment, { children: [cameraMode.cameraType === "perspective" && (_jsxs(_Fragment, { children: [_jsx(OrbitControls, { target: activeState.position }), _jsx(PerspectiveCamera, __assign({ makeDefault: true }, perspectiveCamera))] })), cameraMode.cameraType === "orthographic" && (_jsxs(_Fragment, { children: [_jsx(MapControls, { target: activeState.position }), _jsx(OrthographicCamera, __assign({ makeDefault: true }, orthographicCamera))] }))] }));
|
|
73
72
|
}
|
|
@@ -11,6 +11,6 @@ export declare function gaesupControllerReducer(props: gaesupControllerType, act
|
|
|
11
11
|
vehicle: import("./type").vehicleType;
|
|
12
12
|
character: import("./type").characterType;
|
|
13
13
|
isRider: boolean;
|
|
14
|
-
callbacks
|
|
15
|
-
refs
|
|
14
|
+
callbacks?: import("../initialize/callback/type").callbackType;
|
|
15
|
+
refs?: import("../type").refsType;
|
|
16
16
|
};
|
|
@@ -62,10 +62,10 @@ export type orthographicCameraDebugType = {
|
|
|
62
62
|
far?: number;
|
|
63
63
|
};
|
|
64
64
|
export type perspectiveCameraPropType = {
|
|
65
|
-
isFront
|
|
65
|
+
isFront?: boolean;
|
|
66
66
|
} & perspectiveCameraDebugType;
|
|
67
67
|
export type gaesupControllerType = gaesupControllerContextPropType & {
|
|
68
|
-
callbacks
|
|
69
|
-
refs
|
|
68
|
+
callbacks?: callbackType;
|
|
69
|
+
refs?: refsType;
|
|
70
70
|
};
|
|
71
71
|
export type gaesupDisptachType = dispatchType<gaesupControllerType>;
|