- Timestamp:
- 06/22/23 17:25:06 (18 months ago)
- Location:
- cpp/frams/genetics/fH
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fH/fH_general.cpp
r1257 r1261 18 18 const char *fH_part_names[FH_PART_PROPS_COUNT] = { "fr" }; // , "dn", "ing", "as" }; 19 19 20 const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { " stif", "rotstif" }; //, "stam" };20 const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { "rotstif" }; //"stif", "stam" }; //actually we would want to disable "rotstif" too (we assume the default value is the best, lower values are good to test technical abilities of phenotypes, but in most cases not useful for evolution - the structures and muscles get weaker and even more elastic), but having no joint properties was never tested, so better leave at least one 21 21 22 22 void fH_Handle::loadProperties(Param par) … … 397 397 model->addJoint(newjoint); 398 398 399 newjoint->stif = par.getDoubleById("stif");400 399 newjoint->rotstif = par.getDoubleById("rotstif"); 400 //newjoint->stif = par.getDoubleById("stif"); 401 401 //newjoint->stamina = par.getDoubleById("stam"); 402 402 newjoint->attachToParts(firstpart, secondpart); -
cpp/frams/genetics/fH/fH_general.h
r1257 r1261 19 19 #define STICKH_LENGTH_TYPE "f 0.001 1.999 1.0" ///<Length of stick handle. Minimum should not be equal to 0, because calculating direction of next part from current stick with length 0 would be impossible 20 20 #define FH_PART_PROPS_COUNT 1 ///<Count of part properties 21 #define FH_JOINT_PROPS_COUNT 2///<Count of joint properties21 #define FH_JOINT_PROPS_COUNT 1 ///<Count of joint properties 22 22 #define FH_PE_NEURO_DET "d" ///<Id of details type definition in f0_neuro_paramtab 23 23 #define FH_PE_CONN_WEIGHT "w" ///<Id of weight type definition in f0_neuroconn_paramtab
Note: See TracChangeset
for help on using the changeset viewer.