src/misc/kinematic-body.js
function (t, dt) {
    if (!dt) return;

    const el = this.el;
    const data = this.data
    const body = this.body;

    if (!data.enableJumps) body.velocity.set(0, 0, 0);
    body.position.copy(el.getAttribute('position'));
  }
function (t, dt) {
    if (!dt) return;

    const el = this.el;
    const data = this.data
    const body = this.body;

    if (!data.enableJumps) body.velocity.set(0, 0, 0);
    body.position.copy(el.getAttribute('position'));
  }
*****************************************************************
Update
 
Checks CANNON.World for collisions and attempts to apply them to the
element automatically, in a player-friendly way.

There's extra logic for horizontal surfaces here. The basic requirements:
(1) Only apply gravity when not in contact with _any_ horizontal surface.
(2) When moving, project the velocity against exactly one ground surface.
If in contact with two ground surfaces (e.g. ground + ramp), choose
the one that collides with current velocity, if any.