From 155e329feca67620d788ef830671c8a6774d993a Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 21 Dec 2012 23:11:59 -0500 Subject: [PATCH] Include a comment that explains the humanness check Following a suggestion from @branan, I've added a comment that points out that the controller makes a different sized kinematic actor if the armature is human (male or female) --- Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp b/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp index cf0d2cdf..c1b5cbe1 100644 --- a/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp +++ b/Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp @@ -1993,7 +1993,11 @@ bool plArmatureMod::ValidatePhysics() return false; if (!fController) - fController = plPhysicalControllerCore::Create(GetTarget(0)->GetKey(), fPhysHeight, fPhysWidth, (fBodyType == kBoneBaseMale || fBodyType == kBoneBaseFemale)); + { + // The kinematic actor is made taller if the avatar is human (male or female) + fController = plPhysicalControllerCore::Create(GetTarget(0)->GetKey(), fPhysHeight, + fPhysWidth, (fBodyType == kBoneBaseMale || fBodyType == kBoneBaseFemale)); + } if (fController) {