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
532 B
22 lines
532 B
import BaseInteraction from '@/core/base/BaseInteraction.ts'
|
|
import * as THREE from 'three'
|
|
|
|
export default class CC5Interaction 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.palletWidth = 1 // 宽度
|
|
item.dt.palletDepth = 1.2 // 深度
|
|
return item
|
|
}
|
|
}
|
|
|