[Orxonox-commit 6675] r11306 - in code/branches/SpaceRace_HS16: data/levels src/modules/gametypes
meilel at orxonox.net
meilel at orxonox.net
Mon Nov 28 13:20:43 CET 2016
Author: meilel
Date: 2016-11-28 13:20:42 +0100 (Mon, 28 Nov 2016)
New Revision: 11306
Modified:
code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw
code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRaceController.cc
Log:
nada
Modified: code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw
===================================================================
--- code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw 2016-11-21 15:18:45 UTC (rev 11305)
+++ code/branches/SpaceRace_HS16/data/levels/newnewnewspacerace.oxw 2016-11-28 12:20:42 UTC (rev 11306)
@@ -112,7 +112,7 @@
<ForceField position="0,0,0" direction="0,-1,0" diameter=700 velocity=2000 length=2000/>
<!-- ------------------Planet----------------- -->
- <Planet position="25000,5000,5000" scale=1000 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
+ <Planet position="25000,5000,5000" scale=1500 pitch=-90 mesh="iceplanet.mesh" atmosphere="atmosphere1" rotationaxis="8,1,0" rotationrate="1" atmospheresize=224.0f imagesize=1024.0f />
<StaticEntity position="0,0,0" collisionType=static>
<collisionShapes>
<SphereCollisionShape radius="1" />
Modified: code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRaceController.cc
===================================================================
--- code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRaceController.cc 2016-11-21 15:18:45 UTC (rev 11305)
+++ code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRaceController.cc 2016-11-28 12:20:42 UTC (rev 11306)
@@ -57,61 +57,6 @@
OrxAssert(!checkpoints.empty(), "No Checkpoints in Level");
checkpoints_ = checkpoints;
- /*orxout()<<"es gibt: "<<checkpoints_.size()<<"checkpoints"<<endl;
- for(std::vector<RaceCheckPoint*>::iterator it=checkpoints_.begin(); it!=checkpoints_.end(); it++)
- {
- orxout()<<"Checkpoint "<<(*it)->getCheckpointIndex()<<"; NExtReal: ";
- std::set<int> temp =(*it)->getNextCheckpoints();
- for (std::set<int>::iterator ii =temp.begin(); ii!=temp.end(); ii++)
- {
- orxout()<<(*ii)<<", ";
- }
-
- orxout()<<" NextVirtual: ";
- temp=(*it)->getVirtualNextCheckpoints();
- for (std::set<int>::iterator ii =temp.begin(); ii!=temp.end(); ii++)
- {
- orxout()<<(*ii)<<", ";
- }
- orxout()<<endl<<endl;
-
- }//ausgabe*/
- /*
- for (std::vector<RaceCheckPoint*>::iterator it = checkpoints.begin(); it != checkpoints.end(); ++it)
- {
- std::set<int> nextCheckPoints = ((*it)->getNextCheckpoints());
- if(!nextCheckPoints.empty())
- {
- for (std::set<int>::iterator numb = nextCheckPoints.begin(); numb!=nextCheckPoints.end(); numb++)
- {
- RaceCheckPoint* point2 = findCheckpoint((*numb));
-
- //if(point2 != nullptr)
- //placeVirtualCheckpoints((*it), point2);
- }
- }
- }
- */
- /*
- for(std::vector<RaceCheckPoint*>::iterator it=checkpoints_.begin(); it!=checkpoints_.end(); it++)
- {
- orxout()<<"Checkpoint "<<(*it)->getCheckpointIndex()<<"; NExtReal: ";
- std::set<int> temp =(*it)->getNextCheckpoints();
- for (std::set<int>::iterator ii =temp.begin(); ii!=temp.end(); ii++)
- {
- orxout()<<(*ii)<<", ";
- }
-
- orxout()<<" NextVirtual: ";
- temp=(*it)->getVirtualNextCheckpoints();
- for (std::set<int>::iterator ii =temp.begin(); ii!=temp.end(); ii++)
- {
- orxout()<<(*ii)<<", ";
- }
- orxout()<<endl;
-
- }//ausgabe
- orxout()<<"es gibt: "<<checkpoints_.size()<<"checkpoints"<<endl;*/
staticRacePoints_ = findStaticCheckpoints(nextRaceCheckpoint_, checkpoints);
// initialisation of currentRaceCheckpoint_
currentRaceCheckpoint_ = nullptr;
@@ -121,7 +66,6 @@
{
continue;
}
- //orxout()<<"Die ANzahl der virtuellen CP betraegt: "<< (-i)-2<<endl;
}
@@ -382,6 +326,7 @@
this->boostControl();
this->moveToPosition(nextRaceCheckpoint_->getPosition());
+ this->boostControl();
}
// True if a coordinate of 'pointToPoint' is smaller then the corresponding coordinate of 'groesse'
@@ -425,7 +370,13 @@
return true;
}
+/*
+ void SpaceRaceController::useBoost()
+ {
+ }
+*/
+
/*void SpaceRaceController::computeVirtualCheckpoint(RaceCheckPoint* racepoint1, RaceCheckPoint* racepoint2, const std::vector<StaticEntity*>& allObjects)
{
Vector3 cP1ToCP2=(racepoint2->getPosition()-racepoint1->getPosition()) / (racepoint2->getPosition()-racepoint1->getPosition()).length(); //unit Vector
More information about the Orxonox-commit
mailing list