I'm currently working on developing a video game using Aframe, and I have a question regarding setting my jump height as a variable within the code. This is what I have so far:
<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>
My goal is to assign the jump-ability attribute to be equal to a variable. For instance,
jump-ability="distance: VARIABLE;"
. Does anyone have any suggestions on how I can accomplish this?