Skip to content
< All Topics

Rigid Sensor Part

RigidSensorPart

The class Experior.Core.Parts.Sensors.RigidSensorPart derives from the abstract class Experior.Core.Parts.RigidPart.
RigidSensorPart objects are used in the PhysX environment to detect and manage collisions with RigidParts such as Loads and Assemblies. Since they rely on the collision detection of the PhysX engine they have no functionality in the discrete mode.
RigidSensorParts are available in different shapes (Experior.Core.Parts.Sensors.Cube, Experior.Core.Parts.Sensors.Sphere, Experior.Core.Parts.Sensors.Cylinder) and with different functionality (Experior.Core.Parts.Sensors.LoadMagnet and Experior.Core.Parts.Sensors.EaterCube).
All sensor assemblies of the Sensor catalog contain at least one RigidSensorPart.

An example of the creation and usage of a RigidSensorPart can be found here.

Events

event EnterEvent Enter;
This event is called when the sensorpart collides with a part it should detect according to its Collision property. The delegate it will call has two arguments, the activated sensorpart and the triggering object (can be cast to Load or Assembly).

event LeaveEvent Leave;
This event is called when the sensorpart collides with a part it should detect according to its Collision property. The delegate it will call has two arguments, the activated sensorpart and the triggering object (can be cast to Load or Assembly).

Properties

virtual bool Active
This property returns true when the sensorpart collides with a part it should detect according to its Collision property, false otherwise.

Experior.Core.Environment.Collisions Collision
The Collision property has 3 possible values : Core.Environment.Collisions.Both, Core.Environment.Collisions.Loads and Core.Environment.Collisions.Equipment.
Core.Environment.Collisions.Both: in this case the sensorpart will detect loads as well as assemblies
Core.Environment.Collisions.Loads: in this case the sensorpart only detects loads
Core.Environment.Collisions.Equipment: in this case the sensorpart detects rigidparts of an assembly

List<Load> Loads
This property returns the list of all loads that are currently colliding with the sensorpart.

Was this article helpful?
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.