diff --git a/index.html b/index.html index 5a14356..1b1573f 100644 --- a/index.html +++ b/index.html @@ -3005,6 +3005,10 @@ AFRAME.registerComponent('collision-check', { } }); +function jump(){ + document.getElementById("rig").emit(`jump`, null, false) +} + // used for testing AFRAME.registerComponent('startfunctions', { init: function () { @@ -3040,7 +3044,7 @@ AFRAME.registerComponent('startfunctions', { - +