You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
533 B

import BaseInteraction from '@/core/base/BaseInteraction.ts'
import * as THREE from 'three'
export default class RackInteraction extends BaseInteraction {
get isSinglePointMode(): boolean {
return true
}
constructor(itemTypeName: string) {
super(itemTypeName)
}
createPointOfItem(item: ItemJson, point: THREE.Vector3): ItemJson {
item = super.createPointOfItem(item, point)
// 创建一个地堆货架
item.dt.storeWidth = 1.2 // 宽度
item.dt.storeDepth = 1.2 // 深度
return item
}
}