blender/source/gameengine/GameLogic
Benoit Bolsee d1fd99b070 BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system.
New Add mode for Ipo actuator
=============================
A new Add button, mutually exclusive with Force button, is available in
the Ipo actuator. When selected, it activates the Add mode that consists
in adding the Ipo curve to the current object situation in world
coordinates, or parent coordinates if the object has a parent. Scale Ipo
curves are multiplied instead of added to the object current scale.
If the local flag is selected, the Ipo curve is added (multiplied) in 
the object's local coordinates. 
Delta Ipo curves are handled identically to normal Ipo curve and there 
is no need to work with Delta Ipo curves provided that you make sure 
that the Ipo curve starts from origin. Origin means location 0 for 
Location Ipo curve, rotation 0 for Rotation Ipo curve and scale 1 for 
Scale Ipo curve.

The "current object situation" means the object's location, rotation 
and scale at the start of the Ipo curve. For Loop Stop and Loop End Ipo 
actuators, this means at the start of each loop. This initial state is
used as a base during the execution of the Ipo Curve but when the Ipo 
curve is restarted (later or immediately in case of Loop mode), the  
object current situation at that time is used as the new base.

For reference, here is the exact operation of the Add mode for each
type of Ipo curve (oLoc, oRot, oScale, oMat: object's loc/rot/scale
and orientation matrix at the start of the curve; iLoc, iRot, iScale,
iMat: Ipo curve loc/rot/scale and orientation matrix resulting from
the rotation).

Location
  Local=false: newLoc = oLoc+iLoc
  Local=true : newLoc = oLoc+oScale*(oMat*iLoc)
Rotation
  Local=false: newMat = iMat*oMat
  Local=true : newMat = oMat*iMat
Scale
  Local=false: newScale = oScale*iScale
  Local=true : newScale = oScale*iScale

Add+Local mode is very useful to have dynamic object executing complex
movement relative to their current location/orientation. Of cource, 
dynamics should be disabled during the execution of the curve.

Several corrections in state system
===================================
- Object initial state is taken into account when adding object
  dynamically
- Fix bug with link count when adding object dynamically
- Fix false on-off detection for Actuator sensor when actuator is
  trigged on negative event.
- Fix Parent actuator false activation on negative event
- Loop Ipo curve not restarting at correct frame when start frame is
  different from one.
2008-07-08 12:18:43 +00:00
..
Joystick Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_2DFilterActuator.cpp BGE 2d-filter, custom shaders now can have depth texture and luminance texture 2008-06-28 03:18:11 +00:00
SCA_2DFilterActuator.h BGE 2d-filter, custom shaders now can have depth texture and luminance texture 2008-06-28 03:18:11 +00:00
SCA_ActuatorEventManager.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_ActuatorEventManager.h BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_ActuatorSensor.cpp BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_ActuatorSensor.h BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_AlwaysEventManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_AlwaysEventManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_AlwaysSensor.cpp BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_AlwaysSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_ANDController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ANDController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_EventManager.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_EventManager.h BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_ExpressionController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ExpressionController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_IActuator.cpp BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_IActuator.h BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_IController.cpp == BUGFIX == 2008-07-04 20:24:15 +00:00
SCA_IController.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_IInputDevice.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_IInputDevice.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ILogicBrick.cpp small changes to py funcs that can run 100s of times a second, so python wont generate empty args tuple when they are not needed. 2008-07-04 00:30:44 +00:00
SCA_ILogicBrick.h small changes to py funcs that can run 100s of times a second, so python wont generate empty args tuple when they are not needed. 2008-07-04 00:30:44 +00:00
SCA_IObject.cpp BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_IObject.h BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_IScene.cpp BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_IScene.h BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_ISensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_ISensor.h BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
SCA_JoystickManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_JoystickManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_JoystickSensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_JoystickSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_KeyboardManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_KeyboardManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_KeyboardSensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_KeyboardSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_LogicManager.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_LogicManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_MouseManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_MouseManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_MouseSensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_MouseSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_NANDController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NANDController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NORController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_NORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_ORController.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ORController.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertyActuator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertyActuator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertyEventManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertyEventManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_PropertySensor.cpp BGE logic update: new servo control motion actuator, new distance constraint actuator, new orientation constraint actuator, new actuator sensor. 2008-07-04 08:14:50 +00:00
SCA_PropertySensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_PythonController.cpp non user visible changes and small optimizations to the game engine pyapi as well as fixing some bugs. 2008-07-04 00:05:50 +00:00
SCA_PythonController.h non user visible changes and small optimizations to the game engine pyapi as well as fixing some bugs. 2008-07-04 00:05:50 +00:00
SCA_RandomActuator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomActuator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomEventManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomEventManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomNumberGenerator.cpp big warning hunt commit 2005-03-09 19:45:59 +00:00
SCA_RandomNumberGenerator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomSensor.cpp BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_RandomSensor.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_TimeEventManager.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_TimeEventManager.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_XNORController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XNORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XORController.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SCA_XORController.h BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
SConscript 2d-Filters feature and actuators. 2007-10-22 20:24:26 +00:00