PROXIMITY
Returns the components of the proximity sensor.
Format
PROXIMITY(id, comp)Arguments
- id
- The ID of the Sensor_Proximity element.
- comp
- Indicates the component of the Sensor_Proximity
element as follows:
- 1
- State of interference (1 in contact, 0 not in contact).
- 2
- Minimum distance.
- 3
- X coordinate of the closest point in graphic 1 in the global frame.
- 4
- Y coordinate of the closest point in graphic 1 in the global frame.
- 5
- Z coordinate of the closest point in graphic 1 in the global frame.
- 6
- X coordinate of the closest point in graphic 2 in the global frame.
- 7
- Y coordinate of the closest point in graphic 2 in the global frame.
- 8
- Z coordinate of the closest point in graphic 2 in the global frame.
Example
<Force_Scalar_TwoBody
id = "30101"
type = "Force"
i_marker_id = "30103031"
body1_id = "30103"
j_marker_id = "30104041"
body2_id = "30104"
val_expression = "IF(50-PROXIMITY(70000,2),0.0,0.0,1000*(50-PROXIMITY(70000,2)))"
/>
<Sensor_Proximity
id = "70000"
num_i_graphics = "2"
i_graphics_id = "90000 90009"
num_j_graphics = "1"
j_graphics_id = "90029"
/>