Changeset 9489
- Timestamp:
- Dec 3, 2012, 5:46:12 PM (12 years ago)
- Location:
- code/branches/turret
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turret/data/levels/templates/lodInformation.oxt
r8706 r9489 15 15 <MeshLodInformation mesh=CuboidLandingZone.mesh enabled=false/> 16 16 <MeshLodInformation mesh=HydroHarvester.mesh enabled=false /> 17 <MeshLodInformation mesh=turretHead.mesh enabled=false /> 17 18 18 19 <!-- disable LOD for some debris meshes which caused a crash (fixed in Ogre 1.7.3) --> -
code/branches/turret/data/levels/turretTest.oxw
r9469 r9489 1 1 <LevelInfo 2 2 name = "turret Test" 3 description = "A level with a bsolutely nothingin it."3 description = "A level with a turret in it." 4 4 tags = "test" 5 5 screenshot = "emptylevel.png" … … 15 15 include("templates/spaceshipAssff.oxt") 16 16 include("templates/spaceshipPirate.oxt") 17 include("templates/spaceshipTurret.oxt") 17 18 ?> 18 19 … … 27 28 skybox = "Orxonox/Starbox" 28 29 > 30 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 31 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 32 33 34 <StaticEntity position="0,0,0" yaw=0 pitch=0> 35 <attached> 36 <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" /> 37 <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" /> 38 <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" /> 39 <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" /> 40 <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" /> 41 </attached> 42 </StaticEntity> 29 43 30 44 31 45 32 33 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/> 34 <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 46 <SpaceShip position="0,10,0" pitch="-45" yaw="225" roll="0"> 47 <templates> 48 <Template link=spaceshipturret /> 49 </templates> 50 <controller> 51 <WaypointPatrolController alertnessradius=100 team=10> 52 </WaypointPatrolController> 53 </controller> 54 </SpaceShip> 35 55 36 56 </Scene> -
code/branches/turret/src/modules/objects/Turret.cc
r9469 r9489 39 39 * @brief Constructor 40 40 */ 41 Turret::Turret(BaseObject* creator) : Pawn(creator)41 Turret::Turret(BaseObject* creator) : SpaceShip(creator) 42 42 { 43 43 RegisterObject(Turret); … … 53 53 } 54 54 55 /*void Turret::rotateYaw(const Vector2& value)56 {57 58 }59 60 55 61 56 void Turret::rotatePitch(const Vector2& value) 62 57 { 63 58 Vector2 pitch = value; 59 float nextPitch = this->localAngularAcceleration_.x() + pitch.x*0.8f; 60 // Einschraenken auf 0 bis 180 61 this->localAngularAcceleration_.setX(nextPitch); 64 62 } 65 63 66 void Turret::rotateRoll(const Vector2& value)67 {68 69 }*/70 64 71 65 void Turret::setAlertnessRadius(float value) -
code/branches/turret/src/modules/objects/Turret.h
r9469 r9489 38 38 #include "objects/ObjectsPrereqs.h" 39 39 40 #include "worldentities/pawns/ Pawn.h"40 #include "worldentities/pawns/SpaceShip.h" 41 41 42 42 namespace orxonox 43 43 { 44 class _ObjectsExport Turret : public Pawn44 class _ObjectsExport Turret : public SpaceShip 45 45 { 46 46 public: … … 49 49 50 50 //virtual void tick(float dt); 51 virtual void moveFrontBack(const Vector2& value) {}52 virtual void moveRightLeft(const Vector2& value) {}53 virtual void moveUpDown(const Vector2& value) {}54 51 55 /*virtual void rotateYaw(const Vector2& value);56 52 virtual void rotatePitch(const Vector2& value); 57 virtual void rotateRoll(const Vector2& value);*/58 53 59 54 void setAlertnessRadius(float value);
Note: See TracChangeset
for help on using the changeset viewer.