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
- label
- String
- igeom
- List of integers.
- jgeom
- List of integers.
Example
XML syntax vs. Python for the same example:
|
|