| # | Line 340 | Line 340 | namespace oopse { | |
|---|---|---|
| 340 | // mass = integrableObject->getMass(); | |
| 341 | Vector3d vertexForce = langevinForce/3.0; | |
| 342 | (*vertex)->addFrc(vertexForce); | |
| 343 | < | if (integrableObject->isDirectional()){ |
| 343 | > | |
| 344 | > | if ((*vertex)->isDirectional()){ |
| 345 | Vector3d vertexPos = (*vertex)->getPos(); | |
| 346 | Vector3d vertexCentroidVector = vertexPos - centroid; | |
| 347 | (*vertex)->addTrq(cross(vertexCentroidVector,vertexForce)); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |