@@ -266,6 +266,14 @@ module.exports = {
266
266
event : new Types . String ( 'click' , {
267
267
help : 'The DOM MouseEvent type to trigger the pick' ,
268
268
} ) ,
269
+ lineThreshold : new Types . Float ( 1.0 , {
270
+ nullable : false ,
271
+ help : 'The threshold value for line picking' ,
272
+ } ) ,
273
+ pointThreshold : new Types . Float ( 1.0 , {
274
+ nullable : false ,
275
+ help : 'The threshold value for point picking' ,
276
+ } ) ,
269
277
all : new Types . Bool ( false , {
270
278
help : 'Wether to send info on all object intersections beneath the picked point, or only the first one. See ``picked``.' ,
271
279
} ) ,
@@ -276,6 +284,10 @@ module.exports = {
276
284
point : new Types . Vector3 ( 0 , 0 , 0 , {
277
285
help : 'The coordinates of the picked point (all zero if no object picked)' ,
278
286
} ) ,
287
+ instanceId : new Types . Int ( null , {
288
+ nullable : true ,
289
+ help : 'The InstanceID if picking a multi-instanced object' ,
290
+ } ) ,
279
291
face : new Types . Vector3 ( 0 , 0 , 0 , {
280
292
help : 'The vertex indices of the picked face (all zero if no face picked)' ,
281
293
} ) ,
@@ -285,6 +297,10 @@ module.exports = {
285
297
faceVertices : new Types . VectorArray ( {
286
298
help : 'The three vertices that make up the picked face, as vectors (empty if no face picked)' ,
287
299
} ) ,
300
+ index : new Types . Int ( null , {
301
+ nullable : true ,
302
+ help : 'The index of a picked Points instance' ,
303
+ } ) ,
288
304
faceIndex : new Types . Int ( null , {
289
305
nullable : true ,
290
306
help : 'The index of the face picked (null if no face picked)' ,
@@ -310,7 +326,8 @@ module.exports = {
310
326
} ,
311
327
propsDefinedByThree : [
312
328
'distance' , 'point' , 'face' , 'faceNormal' , 'faceVertices' ,
313
- 'faceIndex' , 'object' , 'picked' , 'uv' , 'indices' ] ,
329
+ 'faceIndex' , 'object' , 'picked' , 'uv' , 'indices' , 'instanceId' ,
330
+ 'index' ] ,
314
331
constructorArgs : [ 'controlling' ] ,
315
332
} ,
316
333
0 commit comments