Regular API function
simCheckProximitySensorEx2 / sim.checkProximitySensorEx2
Description
|
Checks whether the proximity sensor detects the indicated points, segments or triangles. Detection is silent (no visual feedback). See also sim.readProximitySensor and sim.checkProximitySensorEx.
|
C/C++ synopsis
|
simInt simCheckProximitySensorEx2(simInt sensorHandle,simFloat* vertexPointer,simInt itemType,simInt itemCount,simInt detectionMode,simFloat detectionThreshold,simFloat maxAngle,simFloat* detectedPoint,simFloat* normalVector)
|
C/C++ parameters |
sensorHandle: handle of the proximity sensor object
vertexPointer: a pointer to vertices
itemType: 0 for points, 1 for segments and 2 for triangles
itemCount: the number of items that vertexPointer points at
For the other parameters, see the description in simCheckProximitySensorEx. (simCheckProximitySensorEx2 doesn't support occlusion checking)
|
C/C++ return value
|
-1 if operation was not successful, otherwise 0 (no detection) or 1 (detection)
|
Lua synopsis
|
int result,float distance,float[3] detectedPoint,float[3] normalVector=sim.checkProximitySensorEx2(int sensorHandle,float[] vertices,int itemType,int itemCount,int mode,float threshold,float maxAngle)
|
Lua parameters |
sensorHandle: handle of the proximity sensor object
vertices: a table containing vertices
itemType: 0 for points, 1 for segments and 2 for triangles
itemCount: the number of items that the 'vertices' table contains
For the other parameters, see the description in sim.checkProximitySensorEx. (sim.checkProximitySensorEx2 doesn't support occlusion checking)
|
Lua return values
|
result: 0 (not detected) or 1 (detected)
|
Python synopsis |
int result,float distance,list detectedPoint,list normalVector=sim.checkProximitySensorEx2(int sensorHandle,list vertices,int itemType,int itemCount,int mode,float threshold,float maxAngle) |
|