MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / getPosition

Method getPosition

examples/Evolution/NN3DWalkers.cpp:457–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455 }
456
457 btVector3 getPosition() const
458 {
459 btVector3 finalPosition(0, 0, 0);
460
461 for (int i = 0; i < BODYPART_COUNT; i++)
462 {
463 finalPosition += m_bodies[i]->getCenterOfMassPosition();
464 }
465
466 finalPosition /= BODYPART_COUNT;
467 return finalPosition;
468 }
469
470 btScalar getDistanceFitness() const
471 {

Callers 2

drawMarkingsMethod · 0.80
resolveCollisionFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected