fix: initial previous positions

This commit is contained in:
cha0s 2024-11-11 22:59:38 -06:00
parent bcb4115fa0
commit d55c35ca33

View File

@ -31,6 +31,10 @@ export default class Position extends Component {
}
};
}
load(instance) {
instance.lastX = instance.$$x;
instance.lastY = instance.$$y;
}
static properties = {
x: {type: 'float32'},
y: {type: 'float32'},