● JellyPhys v0.2 — MIT · fork me
BUILD MODE · select
World script: onUpdate(player, world, dt) runs on every physics step
// Hackable API (also on window.JellyPhys)
player.pos / player.vel   THREE.Vector3
player.grounded           boolean
world.phys                live physics settings
world.time                seconds since play
world.toast("hi")         pop a message
world.sound(440)          beep!
world.objects             level objects
world.respawn()

// Object script (Inspector) runs once
// when the player starts touching it:
//   player, obj, world
// e.g.  player.vel.y = 30;