Changeset 671 for cpp/frams/genetics/f4/conv_f4.cpp
- Timestamp:
- 08/18/17 15:24:59 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/conv_f4.cpp
r534 r671 1 1 // This file is a part of Framsticks SDK. http://www.framsticks.com/ 2 // Copyright (C) 1999-201 5Maciej Komosinski and Szymon Ulatowski.2 // Copyright (C) 1999-2017 Maciej Komosinski and Szymon Ulatowski. 3 3 // See LICENSE.txt for details. 4 4 … … 179 179 // coordinates are left to be computed by Model 180 180 sprintf(tmpLine, "p:fr=%g,ing=%g,as=%g", 181 /*1.0/C->P.mass,*/ C->P.friction, C->P.ingest , C->P.assim181 /*1.0/C->P.mass,*/ C->P.friction, C->P.ingestion, C->P.assimilation 182 182 //C->firstend.x, C->firstend.y, C->firstend.z 183 183 ); … … 196 196 sprintf(tmpLine, "p:fr=%g,ing=%g,as=%g", 197 197 //C->lastend.x, C->lastend.y, C->lastend.z 198 /*"vol=" 1.0/C->P.mass,*/ C->P.friction, C->P.ingest , C->P.assim198 /*"vol=" 1.0/C->P.mass,*/ C->P.friction, C->P.ingestion, C->P.assimilation 199 199 ); 200 200 partidx = singleStepBuild(tmpLine, &range); … … 212 212 // relative position -- always (len, 0, 0), along the stick 213 213 // this is optional! 214 C->P.len ,214 C->P.length, 215 215 // relative rotation 216 216 C->xrot, C->zrot, 217 217 //C->P.ruch, // rotstif 218 C->P. odpor218 C->P.stamina 219 219 ); 220 220 partidx = singleStepBuild(tmpLine, &range); … … 241 241 { 242 242 if (1 == C->ctrl) 243 sprintf(tmpLine, "n:j=%d,d=\"@:p=%g\"", C->dadlink->joint_refno, C->P. ruch);243 sprintf(tmpLine, "n:j=%d,d=\"@:p=%g\"", C->dadlink->joint_refno, C->P.muscle_power); 244 244 else 245 sprintf(tmpLine, "n:j=%d,d=\"|:p=%g,r=%g\"", C->dadlink->joint_refno, C->P. ruch, C->mz);245 sprintf(tmpLine, "n:j=%d,d=\"|:p=%g,r=%g\"", C->dadlink->joint_refno, C->P.muscle_power, C->mz); 246 246 partidx = singleStepBuild(tmpLine, &range); 247 247 if (partidx < 0) return -32;
Note: See TracChangeset
for help on using the changeset viewer.