gaesup-world 0.6.75 → 0.6.77
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.
|
@@ -9,10 +9,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { useFrame } from "@react-three/fiber";
|
|
14
14
|
import { quat } from "@react-three/rapier";
|
|
15
|
-
import {
|
|
15
|
+
import { useRef } from "react";
|
|
16
16
|
import { AirplaneInnerRef } from "../../inner/airplane";
|
|
17
17
|
export function PassiveAirplane(props) {
|
|
18
18
|
var rigidBodyRef = useRef(null);
|
|
@@ -39,13 +39,10 @@ export function PassiveAirplane(props) {
|
|
|
39
39
|
: 0.1, false);
|
|
40
40
|
}
|
|
41
41
|
});
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, props, refs, { children: props.children })));
|
|
49
|
-
}, [props.position, props.rotation, props.currentAnimation]);
|
|
50
|
-
return _jsx(_Fragment, { children: memorized });
|
|
42
|
+
return (_jsx(AirplaneInnerRef, __assign({ isActive: false, componentType: "airplane", name: "airplane", controllerOptions: props.controllerOptions || {
|
|
43
|
+
lerp: {
|
|
44
|
+
cameraTurn: 1,
|
|
45
|
+
cameraPosition: 1,
|
|
46
|
+
},
|
|
47
|
+
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, props, refs, { children: props.children })));
|
|
51
48
|
}
|
|
@@ -9,8 +9,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import { useEffect,
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useEffect, useRef } from "react";
|
|
14
14
|
import { CharacterInnerRef } from "../../inner/character";
|
|
15
15
|
export function PassiveCharacter(props) {
|
|
16
16
|
var rigidBodyRef = useRef(null);
|
|
@@ -28,13 +28,10 @@ export function PassiveCharacter(props) {
|
|
|
28
28
|
rigidBodyRef.current.setEnabledRotations(false, false, false, false);
|
|
29
29
|
}
|
|
30
30
|
}, []);
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, refs, props, { children: props.children })));
|
|
38
|
-
}, [props.position, props.rotation, props.currentAnimation]);
|
|
39
|
-
return _jsx(_Fragment, { children: memorized });
|
|
31
|
+
return (_jsx(CharacterInnerRef, __assign({ isActive: false, componentType: "character", controllerOptions: props.controllerOptions || {
|
|
32
|
+
lerp: {
|
|
33
|
+
cameraTurn: 1,
|
|
34
|
+
cameraPosition: 1,
|
|
35
|
+
},
|
|
36
|
+
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, refs, props, { children: props.children })));
|
|
40
37
|
}
|
|
@@ -9,12 +9,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
import { jsx as _jsx
|
|
13
|
-
import {
|
|
14
|
-
import { GaesupWorldContext } from "../../../world/context";
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useRef } from "react";
|
|
15
14
|
import { VehicleInnerRef } from "../../inner/vehicle";
|
|
16
15
|
export function PassiveVehicle(props) {
|
|
17
|
-
var states = useContext(GaesupWorldContext).states;
|
|
18
16
|
var rigidBodyRef = useRef(null);
|
|
19
17
|
var outerGroupRef = useRef(null);
|
|
20
18
|
var innerGroupRef = useRef(null);
|
|
@@ -25,13 +23,10 @@ export function PassiveVehicle(props) {
|
|
|
25
23
|
innerGroupRef: innerGroupRef,
|
|
26
24
|
colliderRef: colliderRef,
|
|
27
25
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, props, refs, { children: props.children })));
|
|
35
|
-
}, [props.position, props.rotation, props.currentAnimation]);
|
|
36
|
-
return _jsx(_Fragment, { children: memorized });
|
|
26
|
+
return (_jsx(VehicleInnerRef, __assign({ isActive: false, componentType: "vehicle", name: "vehicle", controllerOptions: props.controllerOptions || {
|
|
27
|
+
lerp: {
|
|
28
|
+
cameraTurn: 1,
|
|
29
|
+
cameraPosition: 1,
|
|
30
|
+
},
|
|
31
|
+
}, position: props.position.clone(), rotation: props.rotation.clone(), currentAnimation: props.currentAnimation }, props, refs, { children: props.children })));
|
|
37
32
|
}
|
package/package.json
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "gaesup-world",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"homepage": "https://jigglypop.github.io/gaesup-world/",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"lodash": "^4.17.
|
|
30
|
-
"
|
|
31
|
-
"react": "^18.2.
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
}
|
|
76
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "gaesup-world",
|
|
3
|
+
"version": "0.6.77",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"homepage": "https://jigglypop.github.io/gaesup-world/",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"@dimforge/rapier3d": "^0.12.0",
|
|
10
|
+
"@dimforge/rapier3d-compat": "^0.12.0",
|
|
11
|
+
"@react-icons/all-files": "^4.1.0",
|
|
12
|
+
"@react-three/drei": "9.105.4",
|
|
13
|
+
"@react-three/fiber": "8.16.2",
|
|
14
|
+
"@react-three/rapier": "^1.3.1",
|
|
15
|
+
"@types/three": "^0.163.0",
|
|
16
|
+
"gh-pages": "^6.1.1",
|
|
17
|
+
"leva": "0.9.35",
|
|
18
|
+
"lodash": "^4.17.21",
|
|
19
|
+
"node-fetch": "3.3.2",
|
|
20
|
+
"react": "^18.2.0",
|
|
21
|
+
"react-device-detect": "^2.2.3",
|
|
22
|
+
"react-dom": "^18.2.0",
|
|
23
|
+
"react-icons": "^5.1.0",
|
|
24
|
+
"react-use-refs": "^1.0.1",
|
|
25
|
+
"three": "^0.163.0",
|
|
26
|
+
"three-stdlib": "^2.29.6"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/lodash": "^4.17.0",
|
|
30
|
+
"@types/react": "^18.2.79",
|
|
31
|
+
"@types/react-dom": "^18.2.25",
|
|
32
|
+
"@vanilla-extract/css": "^1.14.2",
|
|
33
|
+
"@vanilla-extract/dynamic": "^2.1.0",
|
|
34
|
+
"@vanilla-extract/recipes": "^0.5.2",
|
|
35
|
+
"@vanilla-extract/sprinkles": "^1.6.1",
|
|
36
|
+
"@vanilla-extract/vite-plugin": "^4.0.7",
|
|
37
|
+
"@vitejs/plugin-react-swc": "^3.6.0",
|
|
38
|
+
"copyfiles": "^2.4.1",
|
|
39
|
+
"css-loader": "^7.1.1",
|
|
40
|
+
"path": "^0.12.7",
|
|
41
|
+
"prettier": "^3.2.5",
|
|
42
|
+
"rimraf": "^5.0.5",
|
|
43
|
+
"typescript": "^5.4.5",
|
|
44
|
+
"vite": "^5.2.10",
|
|
45
|
+
"vite-plugin-svgr": "^4.2.0"
|
|
46
|
+
},
|
|
47
|
+
"description": "Web 3D Character Controller and World Platform Library",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "git+https://github.com/jigglypop/gaesup-world.git"
|
|
51
|
+
},
|
|
52
|
+
"keywords": [
|
|
53
|
+
"three.js",
|
|
54
|
+
"@react-three/fiber",
|
|
55
|
+
"@react-three/drei",
|
|
56
|
+
"leva",
|
|
57
|
+
"@react-three/rapier",
|
|
58
|
+
"rapier"
|
|
59
|
+
],
|
|
60
|
+
"author": "jigglypop",
|
|
61
|
+
"license": "MIT",
|
|
62
|
+
"bugs": {
|
|
63
|
+
"url": "https://github.com/jigglypop/gaesup-world/issues"
|
|
64
|
+
},
|
|
65
|
+
"scripts": {
|
|
66
|
+
"dev": "vite",
|
|
67
|
+
"preinstall": "npx only-allow pnpm",
|
|
68
|
+
"clean": "rimraf dist/",
|
|
69
|
+
"copy-files": "copyfiles -u 1 src/**/*.html src/**/*.css dist/",
|
|
70
|
+
"build": "vite build",
|
|
71
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
72
|
+
"preview": "vite preview",
|
|
73
|
+
"predeploy": "vite build",
|
|
74
|
+
"deploy": "gh-pages -d dist"
|
|
75
|
+
}
|
|
76
|
+
}
|