ProximitySensor
Model ElementMeasures the closest distance between graphics/mesh of two bodies.
Class Name
ProximitySensor
Description
The ProximitySensor element defines a sensor that measures the minimum distance between the graphics/mesh of two bodies. The sensor tracks the state of interference of the graphics/mesh, the length of the minimum distance, and the coordinates of a pair of closest points. These quantities can be accessed using the PROXIMITY function for use in defining expressions or for plotting.
Attribute Summary
Name | Property | Modifiable by command? | Designable? |
---|---|---|---|
id | Int() | ||
label | Str() | ||
igeom | Reference (Graphics, count=0) | ||
iflex | Reference (FlexBody) | ||
jgeom | Reference (Graphics, count=0) | ||
jflex | Reference (FlexBody) |
Usage
ProximitySensor (id=integer, label=string, igeom=[integer,integer,…], jflex=integer)
Attributes
- id
- Integer
- label
- String
- igeom
- List of Graphics objects.
- iflex
- This argument specifies the Flex_Body for the first body to be considered for contact.
- jgeom
- List of Graphics objects.
- jflex
- This argument specifies the Flex_Body for the second body to be considered for contact.
Example
XML syntax vs. Python for the same example:
|
|
Comments
For a list of supported graphic types, please see Sensor: Proximity.