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/PyDoc
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/PyDoc')
-rw-r--r--source/gameengine/PyDoc/GameLogic.py34
-rw-r--r--source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py4
-rw-r--r--source/gameengine/PyDoc/SCA_ILogicBrick.py3
-rw-r--r--source/gameengine/PyDoc/WhatsNew.py4
4 files changed, 44 insertions, 1 deletions
diff --git a/source/gameengine/PyDoc/GameLogic.py b/source/gameengine/PyDoc/GameLogic.py
index 6ccbce004f5..09780c94e83 100644
--- a/source/gameengine/PyDoc/GameLogic.py
+++ b/source/gameengine/PyDoc/GameLogic.py
@@ -183,4 +183,38 @@ def stopDSP():
Only the fmod sound driver supports this.
DSP can be computationally expensive.
"""
+def getLogicTicRate():
+ """
+ Gets the logic update frequency.
+
+ @return: The logic frequency in Hz
+ @rtype: float
+ """
+def setLogicTicRate(ticrate):
+ """
+ Sets the logic update frequency.
+
+ The logic update frequency is the number of times logic bricks are executed every second.
+ The default is 30 Hz.
+
+ @param ticrate: The new logic update frequency (in Hz).
+ @type ticrate: float
+ """
+def getPhysicsTicRate():
+ """
+ Gets the physics update frequency
+
+ @return: The physics update frequency in Hz
+ @rtype: float
+ """
+def setPhysicsTicRate(ticrate):
+ """
+ Sets the physics update frequency
+
+ The physics update frequency is the number of times the physics system is executed every second.
+ The default is 60 Hz.
+
+ @param ticrate: The new update frequency (in Hz).
+ @type ticrate: float
+ """
diff --git a/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py b/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py
index 7d6d1ee60df..44f9e051c8c 100644
--- a/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py
+++ b/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py
@@ -17,7 +17,7 @@ class KX_SCA_AddObjectActuator(SCA_IActuator):
"""
Sets the game object to add.
- A copy of the object will be added to the scene.
+ A copy of the object will be added to the scene when the actuator is activated.
If the object does not exist, this function is ignored.
@@ -37,6 +37,8 @@ class KX_SCA_AddObjectActuator(SCA_IActuator):
"""
Sets the lifetime of added objects, in frames.
+ If time == 0, the object will last forever.
+
@type time: integer
@param time: The minimum value for time is 0.
"""
diff --git a/source/gameengine/PyDoc/SCA_ILogicBrick.py b/source/gameengine/PyDoc/SCA_ILogicBrick.py
index 6defe6a28a3..ea09fcaea37 100644
--- a/source/gameengine/PyDoc/SCA_ILogicBrick.py
+++ b/source/gameengine/PyDoc/SCA_ILogicBrick.py
@@ -17,6 +17,9 @@ class SCA_ILogicBrick:
"""
Sets the priority of this logic brick.
+ This determines the order controllers are evaluated, and actuators are activated.
+ Bricks with lower priority will be executed first.
+
@type priority: integer
@param priority: the priority of this logic brick.
"""
diff --git a/source/gameengine/PyDoc/WhatsNew.py b/source/gameengine/PyDoc/WhatsNew.py
index 5e16f08375f..777c87a2f48 100644
--- a/source/gameengine/PyDoc/WhatsNew.py
+++ b/source/gameengine/PyDoc/WhatsNew.py
@@ -5,6 +5,10 @@ New Python Functionality in this Version of Blender
This document lists what has been changed in the Game Engine Python API.
+Blender CVS
+------------
+ - Added tic rate methods to L{GameLogic}
+
Blender 2.34
------------