chore: destructure

This commit is contained in:
cha0s 2021-01-19 12:31:32 -06:00
parent 4cd76f6d3a
commit 18add044f4

View File

@ -73,7 +73,7 @@ export default class World extends AbstractWorld {
// Apply impulses.
const it = this.entities.entries();
for (let value = it.next(); value.done !== true; value = it.next()) {
const body = value.value[0];
const [body] = value.value;
const [x, y] = Vector.scale(body.impulse, stepTime);
MatterBody.translate(body.matterBody, {x, y});
}