I am making a video game in Aframe and I'm wondering how can I set my jump height to a variable. Here is the code I'm currently using
<a-entity id="rig"
position="17.5 50.1 0"
movement-controls="speed: 0.2;"
kinematic-body="enableJumps: true;"
jump-ability="distance: 1.8;"
networked="template:#avatar-template;attachTemplateToLocal:false;"
spawn-in-circle="radius:3"
tracker>
<a-entity camera="far: 1000;"
wasd-controls
look-controls="pointerLockEnabled: true;"
position="0 1.6 0">
</a-entity>
</a-entity>
What I would like to happen is to set the jump-ability to equal a variable. For example: jump-ability="distance: VARIABLE;"
Does anybody know how I can achieve this?