Changeset 4731 in orxonox.OLD for orxonox/trunk/src/lib/physics/physics_connection.cc
- Timestamp:
- Jun 29, 2005, 2:10:40 AM (19 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.