The Delay sensor generates positive and negative triggers at precise
time, expressed in number of frames. The delay parameter defines the
length of the initial OFF period. A positive trigger is generated at the
end of this period. The duration parameter defines the length of the ON
period following the OFF period. There is a negative trigger at the end
of the ON period. If duration is 0, the sensor stays ON and there is no
negative trigger. The sensor runs the OFF-ON cycle once unless the repeat
option is set: the OFF-ON cycle repeats indefinately (or the OFF cycle if
duration is 0). Use SCA_ISensor::reset() at any time to restart
sensor.
|
|
|
setDuration(duration)
Set the duration of the ON pulse after initial delay and the
generation of the positive trigger. |
source code
|
|
|
|
integer
|
getDelay()
Return the delay parameter value. |
source code
|
|
integer
|
getDuration()
Return the duration parameter value |
source code
|
|
KX_TRUE or KX_FALSE
|
getRepeat()
Return the repeat parameter value |
source code
|
|
Inherited from SCA_ISensor.SCA_ISensor :
getFrequency ,
getInvert ,
getLevel ,
getUseNegPulseMode ,
getUsePosPulseMode ,
isPositive ,
isTriggered ,
reset ,
setFrequency ,
setInvert ,
setLevel ,
setUseNegPulseMode ,
setUsePosPulseMode
Inherited from SCA_ILogicBrick.SCA_ILogicBrick :
getExecutePriority ,
getOwner ,
setExecutePriority
|