diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2012-03-03 06:47:01 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2012-03-03 06:47:01 +0400 |
commit | 1f928833f3677fa47a10099205c9f7ffa9adfadb (patch) | |
tree | 85b6fb8af88d7d459830e7b3fb51f6b84e74cf50 /source/gameengine/Converter/BL_ArmatureConstraint.h | |
parent | 95bba22af075148f9cbdb5a9b1ef41aeff1f560f (diff) |
option for the Armature Actuator to change the influence of a bone constraint.
Also adds DampedTrackTo to the list of supported constraints in the BGE
Test file:
http://www.pasteall.org/blend/11715
Patch developed as part of a project to NF-UBC Nereus Program.
Development time 'sponsored' by the project.
www.nereusprogram.org
Diffstat (limited to 'source/gameengine/Converter/BL_ArmatureConstraint.h')
-rw-r--r-- | source/gameengine/Converter/BL_ArmatureConstraint.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/gameengine/Converter/BL_ArmatureConstraint.h b/source/gameengine/Converter/BL_ArmatureConstraint.h index 89bad520563..0d79bb1cfa7 100644 --- a/source/gameengine/Converter/BL_ArmatureConstraint.h +++ b/source/gameengine/Converter/BL_ArmatureConstraint.h @@ -104,6 +104,11 @@ public: con->weight = weight; } } + void SetInfluence(float influence) + { + if (m_constraint) + m_constraint->enforce = influence; + } void SetTarget(KX_GameObject* target); void SetSubtarget(KX_GameObject* subtarget); |