diff options
author | Benoit Bolsee <benoit.bolsee@online.be> | 2008-06-24 00:41:18 +0400 |
---|---|---|
committer | Benoit Bolsee <benoit.bolsee@online.be> | 2008-06-24 00:41:18 +0400 |
commit | 02132de7aadee611c8641f01fa44efdf43f54cc4 (patch) | |
tree | ce6314b7c61fe1758383876b6cc2f9f8c5a2b6b0 /source/gameengine/Ketsji/KX_TouchSensor.cpp | |
parent | 10c57fd86e0d42fe5e9f1928598e4642aa778e89 (diff) |
BGE patch: Add NAND, NOR, XOR, XNOR controllers.
NAND controller is an inverted AND controller: the output is
1 if any of the input is 0.
NOR controller is an inverted OR controller: the output is 0
if any of the input is 1.
XOR controller is an exclusive OR: the output is 1 if and only
if one input is 1 and all the other inputs are 0.
XNOR controller is an inverted XOR: the output is 0 if and only
if one input is 0 and all the other inputs are 0.
The NAND, NORT and XNOR controllers are very usefull to create
complementary outputs to start and stop actuators synchronously.
MSCV project files updated.
Diffstat (limited to 'source/gameengine/Ketsji/KX_TouchSensor.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_TouchSensor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/gameengine/Ketsji/KX_TouchSensor.cpp b/source/gameengine/Ketsji/KX_TouchSensor.cpp index 56c2780871b..5311f059f03 100644 --- a/source/gameengine/Ketsji/KX_TouchSensor.cpp +++ b/source/gameengine/Ketsji/KX_TouchSensor.cpp @@ -101,7 +101,7 @@ void KX_TouchSensor::Init() { m_bCollision = false; m_bTriggered = false; - m_bLastTriggered = false; + m_bLastTriggered = (m_invert)?true:false; m_hitObject = NULL; } |