bubble fusion

This commit is contained in:
landgreen
2020-06-23 14:05:34 -07:00
parent d1cb3aff15
commit ffc5aa3e1e
6 changed files with 68 additions and 27 deletions

View File

@@ -1992,7 +1992,7 @@ const mech = {
for (let i = 0, len = body.length; i < len; ++i) {
if (Vector.magnitude(Vector.sub(body[i].position, mech.fieldPosition)) < mech.fieldRadius) {
const DRAIN = speed * body[i].mass * 0.000018
const DRAIN = speed * body[i].mass * 0.000015
if (mech.energy > DRAIN) {
mech.energy -= DRAIN;
Matter.Body.setVelocity(body[i], velocity); //give block mouse velocity