ProximitySensor

Model ElementMeasures the closest distance between two bodies.

Class Name

ProximitySensor

Description

The ProximitySensor element defines a sensor between two bodies which monitors their minimum separation. The sensor tracks the state of interference of the two bodies, the minimum distance between them, and the coordinates of the 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() Yes  
label Str()  
igeom Int(count=0)  
jgeom Int(count=0)  

Usage

ProximitySensor (id=integer, label=string, igeom=[integer,integer,…], jgeom=[integer,integer,…])

Attributes

id
Integer
Element identification number (id > 0). This number is unique among all ProximitySensor elements and uniquely identifies the element.
label
String
The name of the ProximitySensor element.
igeom
List of integers.
List that contains the Post_Graphic element IDs on the first body to be considered for contact.
Note: All Post_Graphic entities must belong to the same body. For a list of supported graphic types, please see Sensor: Proximity.
jgeom
List of integers.
List that contains the Post_Graphic element IDs on the second body to be considered for contact.
This attribute has the same properties as igeom.

Example

XML syntax vs. Python for the same example:

<Sensor_Proximity
     id                  = "70002"
     num_i_graphics      = "1"
     i_graphics_id       = "90013"
     num_j_graphics      = "1"
     j_graphics_id       = "90011"
/>
ProximitySensor (id=70002, label=””, igeom=[90013], jgeom=[90011])

See Also

Sensor: Proximity

Sensor