Skip to content
Snippets Groups Projects
Commit 001db433 authored by Kevin Lee's avatar Kevin Lee
Browse files

reset the navGroup and navNode on teleport

parent edec011e
No related branches found
No related tags found
No related merge requests found
......@@ -75,7 +75,9 @@ AFRAME.registerComponent("character-controller", {
},
handleTeleport: function(event) {
this.setPositionOnNavMesh(event.detail.oldPosition, this.el.object3D);
this.navGroup = null;
this.navNode = null;
this.setPositionOnNavMesh(event.detail.newPosition, this.el.object3D);
},
tick: (function() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment