- Timestamp:
- Jul 4, 2006, 12:11:01 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9074 r9075 220 220 if (State::getCameraNode != NULL) 221 221 { 222 Vector absCoor = this->getAbsCoor(); 223 this->setParent(PNode::getNullParent()); 224 this->setAbsCoor(absCoor); 222 225 State::getCameraNode()->setParentSoft(&this->cameraNode); 223 226 State::getCameraNode()->setRelCoorSoft(-10, 0,0); … … 230 233 if (State::getCameraNode != NULL) 231 234 { 235 this->debugNode(1); 236 this->travelNode->debugNode(1); 237 232 238 this->travelNode->setAbsCoor(this->getAbsCoor()); 233 239 this->travelNode->updateNode(0.01f); 234 this->setParentSoft(this->travelNode); 240 241 this->setParent(this->travelNode); 242 this->setRelCoor(0,0,0); 235 243 236 244 State::getCameraNode()->setParentSoft(this->travelNode); 237 245 State::getCameraNode()->setRelCoorSoft(-10, 50,0); 238 246 State::getCameraTargetNode()->setParentSoft(this->travelNode); 247 248 249 this->debugNode(1); 250 this->travelNode->debugNode(1); 239 251 } 240 252 break; … … 348 360 case Playable::Horizontal: 349 361 { 362 350 363 accel.y = 0.0; 351 364 Vector accelerationDir = this->getAbsDir().apply(accel * this->acceleration);
Note: See TracChangeset
for help on using the changeset viewer.