Changeset 4610 in orxonox.OLD for orxonox/trunk
- Timestamp:
- Jun 12, 2005, 11:48:07 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/coord/p_node.cc
r4592 r4610 117 117 { 118 118 static_cast<BaseObject*>(this)->loadParams(root); 119 120 LoadParam<PNode>(root, "abs-coor", this, &PNode::setAbsCoor) 121 .describe("Sets The absolute Position of the Node."); 122 123 LoadParam<PNode>(root, "rel-coor", this, &PNode::setRelCoor) 124 .describe("Sets The relative position of the Node to its parent."); 119 125 } 120 126 … … 134 140 135 141 /** 142 \brief set relative coordinates 143 \param x x-relative coordinates to its parent 144 \param y y-relative coordinates to its parent 145 \param z z-relative coordinates to its parent 146 \see void PNode::setRelCoor (const Vector& relCoord) 147 */ 148 void PNode::setRelCoor (float x, float y, float z) 149 { 150 this->setRelCoor(Vector(x, y, z)); 151 } 152 153 /** 136 154 \param absCoord set absolute coordinate 137 155 … … 144 162 this->bAbsCoorChanged = true; 145 163 this->absCoordinate = absCoord; 164 } 165 166 /** 167 * \param x x-coordinate. 168 * \param y y-coordinate. 169 * \param z z-coordinate. 170 * \see void PNode::setAbsCoor (const Vector& absCoord) 171 */ 172 void PNode::setAbsCoor(float x, float y, float z) 173 { 174 this->setAbsCoor(Vector(x, y, z)); 146 175 } 147 176 -
orxonox/trunk/src/lib/coord/p_node.h
r4574 r4610 56 56 57 57 void setRelCoor (const Vector& relCoord); 58 void setRelCoor (float x, float y, float z); 58 59 /** \returns the relative position */ 59 60 inline const Vector& getRelCoor () const { return this->relCoordinate; }; 60 61 void setAbsCoor (const Vector& absCoord); 62 void setAbsCoor (float x, float y, float z); 61 63 /** \returns the absolute position */ 62 64 inline const Vector& getAbsCoor () const { return this->absCoordinate; }; -
orxonox/trunk/src/story_entities/world.cc
r4608 r4610 1025 1025 this->dt = currentFrame - this->lastFrame; 1026 1026 1027 if( this->dt > 0)1027 if( this->dt > 10) 1028 1028 { 1029 1029 float fps = 1000/dt; … … 1039 1039 */ 1040 1040 PRINTF(2)("fps = 1000 - frame rate is adjusted\n"); 1041 SDL_Delay(10 );1041 SDL_Delay(10-dt); 1042 1042 this->dt = 10; 1043 1043 }
Note: See TracChangeset
for help on using the changeset viewer.