import { System } from '@serpentity/serpentity';
import PhysicalWithAttributesNode from '../nodes/physical_with_attributes';
+import Config from '../config';
/**
* Distribuets physics data to the related components
update(currentFrameDuration) {
for (const physicalEntity of this.physicalEntities) {
- physicalEntity.position.x = physicalEntity.body.body.position.x;
- physicalEntity.position.y = physicalEntity.body.body.position.y;
+ physicalEntity.position.x = physicalEntity.body.body.position.x * Config.meterSize;
+ physicalEntity.position.y = physicalEntity.body.body.position.y * Config.meterSize;
physicalEntity.angle.angle = physicalEntity.body.body.angle;
}
}
-};
+}