blockly3d/src/types/object.ts

16 lines
279 B
TypeScript

import type { R3, V3 } from "./3d";
import type { Voxel } from "./voxel";
export type ObjectType = {
id: string;
name: string;
voxels: Voxel[];
}
export type ObjectInstance = {
id: string;
typeId: string;
position: V3;
rotation: R3;
scale: V3;
}