Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-10-16 15:41:50 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-10-16 15:41:50 +0400
commit7b2567924b9b86961cd4c07b76653f49939cab1c (patch)
treeadcf1091db6f3f78c05c6b02c567a9b77fc10092 /source/gameengine/GameLogic/SCA_IActuator.cpp
parent063982914038ecd578bab7849a1e94cccbb8d8b9 (diff)
Switch fixed time system. Logic updates should now happen at 30Hz, physics at 60Hz. (By default, use Python to set.) Some actuators still run at framerate (IPO, Action) for nice smooth animation, and an excuse to buy high end hardware.
Keyboard sensors can now hook escape key. Ctrl-Break can be used from within blender if you've forgotten an end game actuator. Fixed a stupid bug preventing some actuators working (like TrackTo).
Diffstat (limited to 'source/gameengine/GameLogic/SCA_IActuator.cpp')
-rw-r--r--source/gameengine/GameLogic/SCA_IActuator.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/source/gameengine/GameLogic/SCA_IActuator.cpp b/source/gameengine/GameLogic/SCA_IActuator.cpp
index 31e6d3fdb10..322936c7819 100644
--- a/source/gameengine/GameLogic/SCA_IActuator.cpp
+++ b/source/gameengine/GameLogic/SCA_IActuator.cpp
@@ -64,11 +64,6 @@ void SCA_IActuator::RemoveAllEvents()
-bool SCA_IActuator::Update(double curtime,double deltatime)
-{
- return true;
-}
-
bool SCA_IActuator::IsNegativeEvent() const
@@ -91,7 +86,19 @@ bool SCA_IActuator::IsNegativeEvent() const
return !bPositiveEvent && bNegativeEvent;
}
+bool SCA_IActuator::Update(double curtime, bool frame)
+{
+ if (frame)
+ return Update();
+
+ return true;
+}
+bool SCA_IActuator::Update()
+{
+ assert(false && "Actuators should override an Update method.");
+ return false;
+}
void SCA_IActuator::ProcessReplica()
{