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:
authorDalai Felinto <dfelinto@gmail.com>2012-03-03 06:47:01 +0400
committerDalai Felinto <dfelinto@gmail.com>2012-03-03 06:47:01 +0400
commit1f928833f3677fa47a10099205c9f7ffa9adfadb (patch)
tree85b6fb8af88d7d459830e7b3fb51f6b84e74cf50 /source/gameengine/Converter/BL_ArmatureConstraint.h
parent95bba22af075148f9cbdb5a9b1ef41aeff1f560f (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.h5
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);