Module LaserDetectorUnit

Detect the hit of a laser.

Element class: LaserDetectorUnit

Extends: Element > ElementWithState

Functions

isHit () Checks if any laser is hitting the detector.
getSignalOut (plug) Return the value of a signal in the specified OUT plug of the element.
EVENT_laserHit () Deprecated: Event: A laser has just hit the detector.
EVENT_onHit () Event: Emitted when a laser hit the detector.
EVENT_laserRelease () Deprecated: Event: All lasers have stopped hitting the detector.
EVENT_onLoss () Event: Emitted when all lasers stop hitting the detector.


Functions

isHit ()
Checks if any laser is hitting the detector.

Returns:

    0/1 1 if a laser is hitting the detector.
getSignalOut (plug)
Return the value of a signal in the specified OUT plug of the element.

Valid plug names are:

  • "out" for the out signal.

Parameters:

  • plug string A valid plug name to query.

Returns:

    0/1 The plug signal state
EVENT_laserHit ()
Deprecated: Event: A laser has just hit the detector.

Note: This is documentation on an event handler, not a callable method.

This event is deprecated: EVENT_onHit should be used instead.

See also:

EVENT_onHit ()
Event: Emitted when a laser hit the detector.

Note: This is documentation on an event handler, not a callable method.

EVENT_laserRelease ()
Deprecated: Event: All lasers have stopped hitting the detector.

Note: This is documentation on an event handler, not a callable method.

This event is deprecated: EVENT_onLoss should be used instead.

See also:

EVENT_onLoss ()
Event: Emitted when all lasers stop hitting the detector.

Note: This is documentation on an event handler, not a callable method.

generated by LDoc 1.4.6 Last updated 2022-12-01 00:36:00