object move blocks
debug floaters
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { getObjectVoxelGroups } from "../graphics/voxelGroup";
|
||||
import type { ObjectInstance, ObjectType, RuntimeObjectInstance, V3, World } from "../../types";
|
||||
import type { GameObjectInstance, ObjectInstance, ObjectType, RuntimeGameObjectInstance, RuntimeObjectInstance, V3, World } from "../../types";
|
||||
import { buildObjectTrimesh } from "../graphics/mesh";
|
||||
|
||||
export function computeBoundingBox(objectType: ObjectType): { min: V3; max: V3 } {
|
||||
@@ -37,3 +37,8 @@ export function depopulateRuntimeObject(object: RuntimeObjectInstance, _world: W
|
||||
const { cache: _cache, rb: _rb, ...result } = object;
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
export function isGameObject(obj: ObjectInstance): obj is GameObjectInstance {
|
||||
return 'version' in obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user