blender/source/gameengine/Converter
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
..
BL_ActionActuator.cpp bugfix, ActionActuator was missing many checks for PyArg_ParseTuple failing. 2008-07-01 13:21:37 +00:00
BL_ActionActuator.h BGE patch #14386: Action Actuator Current Frame Prop. This patch is very usefull for action feedback logic: a sensor on the property can be used to detect a certain moment in the action and trigger more stuff. The property must be on float type for best results 2008-06-23 15:32:44 +00:00
BL_ArmatureObject.cpp Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
BL_ArmatureObject.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
BL_BlenderDataConversion.cpp BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
BL_BlenderDataConversion.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
BL_DeformableGameObject.cpp BGE Patch: Add Shape Action support and update MSCV_7 project file for glew. 2008-06-18 06:46:49 +00:00
BL_DeformableGameObject.h BGE Patch: Add Shape Action support and update MSCV_7 project file for glew. 2008-06-18 06:46:49 +00:00
BL_MeshDeformer.cpp BGE Patch: Add Shape Action support and update MSCV_7 project file for glew. 2008-06-18 06:46:49 +00:00
BL_MeshDeformer.h BGE Patch: Add Shape Action support and update MSCV_7 project file for glew. 2008-06-18 06:46:49 +00:00
BL_ShapeActionActuator.cpp Checked all cases where PyArg_ParseTuple is used in blenders game engine and made sure all will raise errors when called with invalid args. 2008-07-01 16:43:46 +00:00
BL_ShapeActionActuator.h Forgot to set Id property on new shape action files 2008-06-18 07:03:47 +00:00
BL_ShapeDeformer.cpp BGE patch: Add automatic support for armature driven shape keys. 2008-06-24 22:19:00 +00:00
BL_ShapeDeformer.h BGE patch: Add automatic support for armature driven shape keys. 2008-06-24 22:19:00 +00:00
BL_SkinDeformer.cpp BGE patch: Add automatic support for armature driven shape keys. 2008-06-24 22:19:00 +00:00
BL_SkinDeformer.h BGE patch: Add automatic support for armature driven shape keys. 2008-06-24 22:19:00 +00:00
BL_SkinMeshObject.cpp Small fix to be able to compile Blender. 2008-06-18 09:52:31 +00:00
BL_SkinMeshObject.h BGE Patch: Add Shape Action support and update MSCV_7 project file for glew. 2008-06-18 06:46:49 +00:00
BlenderWorldInfo.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
BlenderWorldInfo.h 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
KX_BlenderScalarInterpolator.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_BlenderScalarInterpolator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_BlenderSceneConverter.cpp Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
KX_BlenderSceneConverter.h Merge of apricot branch game engine changes into trunk, excluding GLSL. 2008-06-17 10:27:34 +00:00
KX_ConvertActuators.cpp BGE logic patch: new "Add" mode for Ipo actuator, several corrections in state system. 2008-07-08 12:18:43 +00:00
KX_ConvertActuators.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ConvertControllers.cpp BGE patch: Add NAND, NOR, XOR, XNOR controllers. 2008-06-23 20:41:18 +00:00
KX_ConvertControllers.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ConvertProperties.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ConvertProperties.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_ConvertSensors.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
KX_ConvertSensors.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_IpoConvert.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
KX_IpoConvert.h 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
SConscript This commit fixes up a bunch of svn properties to hopefully make things a little nicer for everyone. 2007-08-28 10:07:08 +00:00