Class BeamLight
Provides ports to describe a laser light used inside a sensor device.
Syntax
[NodeCategory("Light", "Beam light", NodeTick.Asynchronous, (LifeCycle)0, 0F, NodeMode.Standard, false)]
public class BeamLight : NodeRuntime
Fields
beamWidth
Declaration
[Tooltip("The width of the beam leaving the sensor in milimeters.")]
[Field("Beam Width", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> beamWidth
Field Value
diameter
Declaration
[Tooltip("The source is a disk. The ray are emitted uniformly on this disk. 0 mean a single point.")]
[Field("Diameter", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> diameter
Field Value
divergence
Declaration
[Tooltip("How much the light diverge from the source disk.")]
[Field("Divergence", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> divergence
Field Value
power
Declaration
[Tooltip("Define the beam power in watts.")]
[Field("Power", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<float> power
Field Value
waveLength
Declaration
[Tooltip("Define the light wave length. Photo detector with different wave length will filter this out.")]
[Field("WaveLength", PortDirection.Left, FieldExtra.Read)]
[SerializeField]
protected PortType<uint> waveLength
Field Value
Methods
Disable()
Remove the beam light by adding it to the global list of beam light.
Declaration
public override void Disable()
Overrides
Enable(Scheduler.ClockState)
Enable the beam light by adding it to the global list of beam light.
Declaration
public override void Enable(Scheduler.ClockState clockState)
Parameters
Overrides