Browse Source

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)
Adam Johnson 12 years ago
parent
commit
155e329fec
  1. 6
      Sources/Plasma/PubUtilLib/plAvatar/plArmatureMod.cpp

6
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)
{

Loading…
Cancel
Save