Changeset 5382 in orxonox.OLD for trunk/src/lib/graphics/render2D/element_2d.cc
- Timestamp:
- Oct 15, 2005, 8:22:30 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/render2D/element_2d.cc
r5378 r5382 555 555 * @param bias the speed to iterate to this new Positions 556 556 */ 557 void Element2D::s oftReparent2D(Element2D* parentNode, float bias)557 void Element2D::setParentSoft2D(Element2D* parentNode, float bias) 558 558 { 559 559 if (this->parent == parentNode) … … 578 578 parentNode->addChild2D(this); 579 579 580 if (this->parentMode & PNODE_ROTATE_MOVEMENT) 580 if (this->parentMode & PNODE_ROTATE_MOVEMENT) //! @todo implement this. 581 581 ;//this->setRelCoor(this->parent->getAbsDir().inverse().apply(tmpV - this->parent->getAbsCoor())); 582 582 else 583 this->setRelCoor2D(tmpV - parentNode->getAbsCoor2D()); 584 585 this->setRelDir2D(tmpQ - parentNode->getAbsDir2D()); 583 this->relCoordinate = (tmpV - parentNode->getAbsCoor2D()); 584 this->bRelCoorChanged = true; 585 586 this->relDirection = (tmpQ - parentNode->getAbsDir2D()); 587 this->bRelDirChanged = true; 586 588 } 587 589 … … 591 593 * @param bias the speed to iterate to this new Positions 592 594 */ 593 void Element2D::s oftReparent2D(const char* parentName, float bias)595 void Element2D::setParentSoft2D(const char* parentName, float bias) 594 596 { 595 597 Element2D* parentNode = dynamic_cast<Element2D*>(ClassList::getObject(parentName, CL_ELEMENT_2D)); 596 598 if (parentNode != NULL) 597 this->s oftReparent2D(parentNode, bias);599 this->setParentSoft2D(parentNode, bias); 598 600 } 599 601 … … 852 854 853 855 854 855 856 /////////////////// 856 857 // NullElement2D //
Note: See TracChangeset
for help on using the changeset viewer.