Skip to content

Commit

Permalink
fix links
Browse files Browse the repository at this point in the history
  • Loading branch information
yomotsu committed Apr 28, 2023
1 parent 5705036 commit 54ef767
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ examples
See following demos and check the source code with some comments.
(You need three.js via peerDependencies or importmap)

1. [get started](http://yomotsu.github.io/meshwalk/example/1_get-started.html)
2. [keyboard Input](http://yomotsu.github.io/meshwalk/example/2_keyboard-input.html)
3. [the CameraControl](http://yomotsu.github.io/meshwalk/example/3_camera-control.html)
4. [objects](http://yomotsu.github.io/meshwalk/example/4_objects.html)
5. [terrain](http://yomotsu.github.io/meshwalk/example/5_terrain.html)
6. [AnimationController](http://yomotsu.github.io/meshwalk/example/6_animation-controller.html)
7. [all together](http://yomotsu.github.io/meshwalk/example/7_all-together.html)
8. [remove collider](http://yomotsu.github.io/meshwalk/example/8_mesh-remove.html)
1. [get started](http://yomotsu.github.io/meshwalk/examples/1_get-started.html)
2. [keyboard Input](http://yomotsu.github.io/meshwalk/examples/2_keyboard-input.html)
3. [the CameraControl](http://yomotsu.github.io/meshwalk/examples/3_camera-control.html)
4. [objects](http://yomotsu.github.io/meshwalk/examples/4_objects.html)
5. [terrain](http://yomotsu.github.io/meshwalk/examples/5_terrain.html)
6. [AnimationController](http://yomotsu.github.io/meshwalk/examples/6_animation-controller.html)
7. [all together](http://yomotsu.github.io/meshwalk/examples/7_all-together.html)
8. [remove collider](http://yomotsu.github.io/meshwalk/examples/8_mesh-remove.html)

examples with [recast-navigation-js](https://github.com/isaac-mason/recast-navigation-js):

9. [with recast nav-mesh: followers](http://yomotsu.github.io/meshwalk/example/9_with-recast-nav-mesh-followers.html)
10. [with recast nav-mesh: autopilot](http://yomotsu.github.io/meshwalk/example/10_with-recast-nav-mesh-autopilot.html)
9. [with recast nav-mesh: followers](http://yomotsu.github.io/meshwalk/examples/9_with-recast-nav-mesh-followers.html)
10. [with recast nav-mesh: auto navigation](http://yomotsu.github.io/meshwalk/examples/10_with-recast-nav-mesh-navigation.html)
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<body>
<div class="info">
W,A,S,D key to move<br>
<button type="button" onClick="guideToRed(); this.blur();">guide to red</button><br>
<button type="button" onClick="guideToYellow(); this.blur();">guide to yellow</button><br>
<button type="button" onClick="guideToBlue(); this.blur();">guide to blue</button>
<button type="button" onClick="navigateToRed(); this.blur();">navigate to red</button><br>
<button type="button" onClick="navigateToYellow(); this.blur();">navigate to yellow</button><br>
<button type="button" onClick="navigateToBlue(); this.blur();">navigate to blue</button>
</div>

<script async src="https://unpkg.com/[email protected]/dist/es-module-shims.js"></script>
Expand Down Expand Up @@ -180,7 +180,7 @@
let agentIndex = null;
let isAutoPilotActive = false;
const goalPosition = new THREE.Vector3();
const guideTo = ( x, y, z ) => {
const navigateTo = ( x, y, z ) => {

isAutoPilotActive = true;

Expand Down Expand Up @@ -254,9 +254,9 @@
keyInputControl.addEventListener( 'movekeyon', cancelAutoPilot );
keyInputControl.addEventListener( 'jumpkeypress', cancelAutoPilot );

const guideToRed = () => guideTo( points[ 0 ].x, points[ 0 ].y, points[ 0 ].z );
const guideToYellow = () => guideTo( points[ 1 ].x, points[ 1 ].y, points[ 1 ].z );
const guideToBlue = () => guideTo( points[ 2 ].x, points[ 2 ].y, points[ 2 ].z );
const navigateToRed = () => navigateTo( points[ 0 ].x, points[ 0 ].y, points[ 0 ].z );
const navigateToYellow = () => navigateTo( points[ 1 ].x, points[ 1 ].y, points[ 1 ].z );
const navigateToBlue = () => navigateTo( points[ 2 ].x, points[ 2 ].y, points[ 2 ].z );

( function update () {

Expand All @@ -275,9 +275,9 @@

} )();

globalThis.guideToRed = guideToRed;
globalThis.guideToYellow = guideToYellow;
globalThis.guideToBlue = guideToBlue;
globalThis.navigateToRed = navigateToRed;
globalThis.navigateToYellow = navigateToYellow;
globalThis.navigateToBlue = navigateToBlue;
globalThis.crowd = crowd;
</script>

Expand Down

0 comments on commit 54ef767

Please sign in to comment.