29 abstractMarker::abstractMarker(){
31 (void) btInfinityMask;
35 abstractMarker::abstractMarker(
const btRigidBody *body,btVector3 worldPos,btVector3 color,
int nodeNumber)
39 attachedRelativeOriginalPosition=worldPos;
41 this->nodeNumber = nodeNumber;
47 btTransform tr = attachedBody->getWorldTransform();
48 btVector3 worldPos = tr * attachedRelativeOriginalPosition;
49 return worldPos-this->attachedBody->getCenterOfMassPosition();
55 btTransform tr = attachedBody->getWorldTransform();
56 return tr * attachedRelativeOriginalPosition;
btVector3 getRelativePosition() const
Markers for specific places on a tensegrity.
btVector3 getWorldPosition() const