Changeset 4731 in orxonox.OLD for orxonox/trunk/src/lib
- Timestamp:
- Jun 29, 2005, 2:10:40 AM (19 years ago)
- Location:
- orxonox/trunk/src/lib/physics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/physics/physics_connection.cc
r4728 r4731 37 37 this->setClassID(CL_PHYSICS_CONNECTION, "PhysicsConnection"); 38 38 this->type = PCON_PhysIField; 39 39 40 this->subject = subject; 40 41 this->field = field; … … 55 56 LoadParam<PhysicsConnection>(root, "field", this, &PhysicsConnection::setField) 56 57 .describe("set the field by name"); 58 59 PhysicsEngine::getInstance()->addConnection(this); 57 60 } 58 61 … … 73 76 this->subject = PhysicsEngine::getInstance()->getPhysicsInterfaceByName(subjectName); 74 77 if (this->subject == NULL) 78 { 75 79 PRINTF(2)("subject: (%s) not found for PhysicsConnection\n", subjectName); 80 } 81 else 82 PRINTF(5)("subject::%s\n", this->subject->getName()); 76 83 } 77 84 … … 83 90 this->field = PhysicsEngine::getInstance()->getFieldByName(fieldName); 84 91 if (this->field == NULL) 85 PRINTF(2)("field: (%s) not found for PhysicsConnection\n", fieldName); 92 { 93 PRINTF(2)("field: (%s) not found for PhysicsConnection\n", fieldName); 94 } 95 else 96 PRINTF(5)("field::%s\n", this->field->getName()); 97 86 98 } 87 99 -
orxonox/trunk/src/lib/physics/physics_connection.h
r4728 r4731 23 23 // Forward Declaration 24 24 25 //! A class that Handles Physical Connection between subjects25 //! A class that Handles Physical Connection between different subjects 26 26 class PhysicsConnection : public BaseObject 27 27 { -
orxonox/trunk/src/lib/physics/physics_engine.cc
r4730 r4731 60 60 const TiXmlElement* element = NULL; 61 61 62 PRINTF( 0)("Loading Physical Fields\n");62 PRINTF(4)("Loading Physical Fields\n"); 63 63 element = root->FirstChildElement("Fields"); 64 printf("PPPPPOOOOINNNTERRRR: %p\n", element);65 64 element = element->FirstChildElement(); 66 printf("PPPPPOOOOINNNTERRRR: %p\n", element);67 65 while (element != NULL) 68 66 { 69 Factory::getFirst()->fabricate(element) ->getName();67 Factory::getFirst()->fabricate(element); 70 68 71 69 element = element->NextSiblingElement(); … … 73 71 element = NULL; 74 72 75 PRINTF( 0)("Loading Physical Connections\n");73 PRINTF(4)("Loading Physical Connections\n"); 76 74 element = root->FirstChildElement("Connections"); 77 75 element = element->FirstChildElement();
Note: See TracChangeset
for help on using the changeset viewer.