diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-15 03:31:49 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-08-15 03:31:49 +0400 |
commit | 9afae77fedb8a84f4d305ebce81b0cc509a2183b (patch) | |
tree | c8e747520371df4e3dd00a142419727ef6db60d9 /doc | |
parent | c8f75fb5b1918a13a722ed39bb8cace1ee5b58b8 (diff) |
BGE: Finally adding support for additive layer blending.
Currently this is only for the Python API. The logic brick will be updated in a future commit.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge.logic.rst | 13 | ||||
-rw-r--r-- | doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst | 6 |
2 files changed, 17 insertions, 2 deletions
diff --git a/doc/python_api/rst/bge.logic.rst b/doc/python_api/rst/bge.logic.rst index c7915ee5279..3a79d32d917 100644 --- a/doc/python_api/rst/bge.logic.rst +++ b/doc/python_api/rst/bge.logic.rst @@ -1114,6 +1114,19 @@ See :class:`bge.types.KX_GameObject.playAction` :value: 2 +.. _gameobject-playaction-blend: + +.. data:: KX_ACTION_BLEND_BLEND + + Blend layers using linear interpolation + + :value: 0 + +.. data:: KX_ACTION_BLEND_ADD + + Adds the layers together + + :value: 1 ------------- Mouse Buttons diff --git a/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst b/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst index a9c91735f91..3be148556ef 100644 --- a/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst +++ b/doc/python_api/rst/bge_types/bge.types.KX_GameObject.rst @@ -776,7 +776,7 @@ base class --- :class:`SCA_IObject` Return the value matching key, or the default value if its not found. :return: The key value or a default. - .. method:: playAction(name, start_frame, end_frame, layer=0, priority=0, blendin=0, play_mode=ACT_MODE_PLAY, layer_weight=0.0, ipo_flags=0, speed=1.0) + .. method:: playAction(name, start_frame, end_frame, layer=0, priority=0, blendin=0, play_mode=KX_ACTION_MODE_PLAY, layer_weight=0.0, ipo_flags=0, speed=1.0, blend_mode=KX_ACTION_BLEND_BLEND) Plays an action. @@ -794,12 +794,14 @@ base class --- :class:`SCA_IObject` :type blendin: float :arg play_mode: the play mode :type play_mode: one of :ref:`these constants <gameobject-playaction-mode>` - :arg layer_weight: how much of the previous layer to use for blending (0 = add) + :arg layer_weight: how much of the previous layer to use for blending :type layer_weight: float :arg ipo_flags: flags for the old IPO behaviors (force, etc) :type ipo_flags: int bitfield :arg speed: the playback speed of the action as a factor (1.0 = normal speed, 2.0 = 2x speed, etc) :type speed: float + :arg blend_mode: how to blend this layer with previous layers + :type blend_mode: one of :ref:`these constants <gameobject-playaction-blend>` .. method:: stopAction(layer=0) |