13 lines
287 B
TypeScript
13 lines
287 B
TypeScript
import type { MapNode, MapNodeInstanceTransform } from "@/types/map/mapScene";
|
|
|
|
export function mapNodeToInstanceTransform(
|
|
node: MapNode,
|
|
): MapNodeInstanceTransform {
|
|
return {
|
|
id: node.id,
|
|
position: node.position,
|
|
rotation: node.rotation,
|
|
scale: node.scale,
|
|
};
|
|
}
|