chore: destructure
This commit is contained in:
parent
4cd76f6d3a
commit
18add044f4
|
@ -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});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user