actions reactored. multi-tick action support
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user