Skip to main content

Proximity Info

ProximityInfo data is included in the state and captures information about the pairwise distances and collision state when two objects in the scene are near one another.

ParameterTypeDescription
shape1stringThe name of first shape of the collision pair
shape2stringThe name of second shape of the collision pair
distancefloatThe distance between the closet points between the collision pair
pointsoptional list of pairs of 3 float valuesThe closest points on the shapes of which the distance is calculated
physicalbooleanA boolean value determining if the collision with this shape is considered as phyiscal
lossfloatA value used in loss function
average_distanceoptional floatThe average distance polled from the distance history