actions reactored. multi-tick action support

This commit is contained in:
azykov@mail.ru
2026-06-12 11:46:42 +03:00
parent 36f76efdd7
commit 20a4edad5a
35 changed files with 1047 additions and 373 deletions
+2 -2
View File
@@ -29,11 +29,11 @@ export function populateRuntimeObject(object: ObjectInstance, world: World): Run
boundingBox: computeBoundingBox(objectType),
updatedAt: 0,
},
pendingActions: {},
rb: () => null,
};
}
export function depopulateRuntimeObject(object: RuntimeObjectInstance, _world: World): ObjectInstance {
const { cache: _cache, ...result } = object;
const { cache: _cache, rb: _rb, ...result } = object;
return result;
}