fix: timing
This commit is contained in:
parent
e1df863c44
commit
0c15cd0f94
|
@ -146,12 +146,11 @@ export default (latus) => class Collider extends decorate(Trait) {
|
||||||
|
|
||||||
async pushCollisionTickingPromise(codeOrUri, other, incident) {
|
async pushCollisionTickingPromise(codeOrUri, other, incident) {
|
||||||
const {Script} = latus.get('%resources');
|
const {Script} = latus.get('%resources');
|
||||||
const script = await Script.load(codeOrUri, {
|
this.entity.addTickingPromise(Script.loadTickingPromise(codeOrUri, {
|
||||||
entity: this.entity,
|
...this.entity.contextOrDefault,
|
||||||
incident,
|
incident,
|
||||||
other,
|
other,
|
||||||
});
|
}));
|
||||||
this.entity.addTickingPromise(script.tickingPromise());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
releaseAllCollisions() {
|
releaseAllCollisions() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user