recast-navigation 0.0.5 → 0.0.6
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.
- package/README.md +2 -5
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -131,12 +131,9 @@ crowd.update(dt);
|
|
|
131
131
|
Next, you can create and interface with agents in the crowd.
|
|
132
132
|
|
|
133
133
|
```ts
|
|
134
|
-
const position = { x: 0, y: 0, z: 0 };
|
|
135
|
-
const radius = 0.6;
|
|
136
|
-
|
|
137
134
|
const initialAgentPosition = navMesh.getRandomPointAround(
|
|
138
|
-
{ x: 0, y: 0, z: 0 },
|
|
139
|
-
2
|
|
135
|
+
{ x: 0, y: 0, z: 0 }, // position
|
|
136
|
+
2 // radius
|
|
140
137
|
);
|
|
141
138
|
|
|
142
139
|
const agentIndex = crowd.addAgent(initialAgentPosition, {
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"email": "isaac@isaacmason.com",
|
|
19
19
|
"url": "https://isaacmason.com/"
|
|
20
20
|
},
|
|
21
|
-
"version": "0.0.
|
|
21
|
+
"version": "0.0.6",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"homepage": "https://github.com/isaac-mason/recast-navigation-js",
|
|
24
24
|
"bugs": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"build-storybook": "storybook build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@recast-navigation/core": "0.0.
|
|
53
|
-
"@recast-navigation/three": "0.0.
|
|
52
|
+
"@recast-navigation/core": "0.0.6",
|
|
53
|
+
"@recast-navigation/three": "0.0.6"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"three": "^0.150.1"
|