Blender Git Commit Log

Git Commits -> Revision fda00bc

Revision fda00bc by Benoit Bolsee (master)
August 16, 2008, 20:45 (GMT)
BGE patch: New Delay sensor (derived from patch #17472)

Introduction of a new Delay sensor that can be used to
generate 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.
A negative trigger is generated 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).

The new generic SCA_ISensor::reset() Python function
can be used at any time to restart the sensor: the
current cycle is interrupted and no trigger is generated.

Commit Details:

Full Hash: fda00bc034de33371c4c7471467889f7d33c780b
SVN Revision: 16136
Parent Commit: ae42934
Lines Changed: +477, -3

3 Added Paths:

/source/gameengine/GameLogic/SCA_DelaySensor.cpp (+257, -0) (View)
/source/gameengine/GameLogic/SCA_DelaySensor.h (+77, -0) (View)
/source/gameengine/PyDoc/SCA_DelaySensor.py (+56, -0) (View)

10 Modified Paths:

/projectfiles_vc7/gameengine/gamelogic/SCA_GameLogic.vcproj (+6, -0) (Diff)
/source/blender/blenkernel/intern/sca.c (+3, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+3, -0) (Diff)
/source/blender/makesdna/DNA_sensor_types.h (+10, -0) (Diff)
/source/blender/src/buttons_logic.c (+27, -3) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+17, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+13, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.h (+1, -0) (Diff)
/source/gameengine/PyDoc/GameLogic.py (+1, -0) (Diff)
/source/gameengine/PyDoc/SCA_ISensor.py (+6, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021