@simversus/yjvis • Docs
@simversus/yjvis / Picker
Class: Picker
cpu拾取器,性能不如gpu拾取,但是能够拾取被遮挡的单元/模型
Constructors
new Picker()
new Picker():
Picker
Returns
Methods
buildQuadTree()
buildQuadTree(
models
,maxLevel
,maxCount
,camera
):void
构建四叉树
Parameters
• models: Model
[]
拾取模型
• maxLevel: number
四叉树最大层级
• maxCount: number
四叉树一个节点的最大对象数
• camera: Camera
相机
Returns
void
Defined in
control/Selector.ts:459
select()
select(
op
):Promise
<SelectResult
>
进行拾取
Parameters
• op: SelectOP
Returns
Promise
<SelectResult
>
Defined in
control/Selector.ts:512