@@ -266,6 +266,14 @@ module.exports = {
266266 event : new Types . String ( 'click' , {
267267 help : 'The DOM MouseEvent type to trigger the pick' ,
268268 } ) ,
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+ } ) ,
269277 all : new Types . Bool ( false , {
270278 help : 'Wether to send info on all object intersections beneath the picked point, or only the first one. See ``picked``.' ,
271279 } ) ,
@@ -276,6 +284,10 @@ module.exports = {
276284 point : new Types . Vector3 ( 0 , 0 , 0 , {
277285 help : 'The coordinates of the picked point (all zero if no object picked)' ,
278286 } ) ,
287+ instanceId : new Types . Int ( null , {
288+ nullable : true ,
289+ help : 'The InstanceID if picking a multi-instanced object' ,
290+ } ) ,
279291 face : new Types . Vector3 ( 0 , 0 , 0 , {
280292 help : 'The vertex indices of the picked face (all zero if no face picked)' ,
281293 } ) ,
@@ -285,6 +297,10 @@ module.exports = {
285297 faceVertices : new Types . VectorArray ( {
286298 help : 'The three vertices that make up the picked face, as vectors (empty if no face picked)' ,
287299 } ) ,
300+ index : new Types . Int ( null , {
301+ nullable : true ,
302+ help : 'The index of a picked Points instance' ,
303+ } ) ,
288304 faceIndex : new Types . Int ( null , {
289305 nullable : true ,
290306 help : 'The index of the face picked (null if no face picked)' ,
@@ -310,7 +326,8 @@ module.exports = {
310326 } ,
311327 propsDefinedByThree : [
312328 'distance' , 'point' , 'face' , 'faceNormal' , 'faceVertices' ,
313- 'faceIndex' , 'object' , 'picked' , 'uv' , 'indices' ] ,
329+ 'faceIndex' , 'object' , 'picked' , 'uv' , 'indices' , 'instanceId' ,
330+ 'index' ] ,
314331 constructorArgs : [ 'controlling' ] ,
315332 } ,
316333
0 commit comments