Changeset 1257 for cpp/frams/genetics/fH/fH_general.cpp
- Timestamp:
- 06/22/23 03:47:26 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fH/fH_general.cpp
r973 r1257 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-202 0Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2023 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 16 16 // Methods for loading handles 17 17 18 const char *fH_part_names[FH_PART_PROPS_COUNT] = { " dn", "fr", "ing", "as" };19 20 const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { "stif", "rotstif" , "stam" };18 const char *fH_part_names[FH_PART_PROPS_COUNT] = { "fr" }; // , "dn", "ing", "as" }; 19 20 const char *fH_joint_names[FH_JOINT_PROPS_COUNT] = { "stif", "rotstif" }; //, "stam" }; 21 21 22 22 void fH_Handle::loadProperties(Param par) … … 376 376 model->addPart(newpart); 377 377 378 newpart-> density = partprops[0];379 newpart->friction= partprops[1];380 newpart->ingest = partprops[2];381 newpart->assim = partprops[3];378 newpart->friction = partprops[0]; //Macko 2023-06: TODO partprops[0] is different from par.getDoubleById("fr"); (and par.getDoubleById() is used in createJoint() below, investigate why this difference and whether hardcoded references to fields like here could be avoided? Only use fH_part_names if possible.) 379 //newpart->density = partprops[1]; 380 //newpart->ingest = partprops[2]; 381 //newpart->assim = partprops[3]; 382 382 383 383 if (createmapping) newpart->addMapping(ranges); … … 399 399 newjoint->stif = par.getDoubleById("stif"); 400 400 newjoint->rotstif = par.getDoubleById("rotstif"); 401 newjoint->stamina = par.getDoubleById("stam");401 //newjoint->stamina = par.getDoubleById("stam"); 402 402 newjoint->attachToParts(firstpart, secondpart); 403 403 if (createmapping) newjoint->addMapping(IRange(begin, end));
Note: See TracChangeset
for help on using the changeset viewer.