Changeset 10008 for code/branches/turretFS14
- Timestamp:
- Mar 27, 2014, 3:52:59 PM (11 years ago)
- Location:
- code/branches/turretFS14
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/data/levels/templates/spaceshipTurretTest.oxt
r10004 r10008 39 39 > 40 40 <attached> 41 <Model position="0,0,0" yaw="90" roll="-90" mesh="turretHead.mesh" scale3D="10,10,10"/>41 <Model position="0,0,0" pitch="0" roll="0" mesh="turretHead.mesh" scale3D="10,10,10"/> 42 42 </attached> 43 43 <collisionShapes> -
code/branches/turretFS14/data/levels/turretTest.oxw
r10004 r10008 41 41 <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" /> 42 42 <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" /> 43 44 <Turret position="0,10,0" pitch="0" yaw="90" roll="0"> 45 <templates> 46 <Template link=spaceshipturrettest /> 47 </templates> 48 <controller> 49 <TurretController team=10 /> 50 </controller> 51 </Turret> 52 53 <Model mesh="sphere.mesh" position="25,0,0" scale=1 /> 54 55 <Model mesh="sphere.mesh" position="0,25,0" scale=1 /> 56 57 <Model mesh="sphere.mesh" position="0,0,25" scale=1 /> 58 43 59 </attached> 44 60 </StaticEntity> 45 61 46 47 48 <Turret position="0,10,0" pitch="90" yaw="0" roll="0">49 <templates>50 <Template link=spaceshipturrettest />51 </templates>52 <controller>53 <WaypointPatrolController alertnessradius=100 team=10>54 </WaypointPatrolController>55 </controller>56 </Turret>57 62 58 63 -
code/branches/turretFS14/src/modules/objects/CMakeLists.txt
r9526 r10008 11 11 ADD_SUBDIRECTORY(eventsystem) 12 12 ADD_SUBDIRECTORY(triggers) 13 ADD_SUBDIRECTORY(controllers) 13 14 14 15 ORXONOX_ADD_LIBRARY(objects -
code/branches/turretFS14/src/modules/objects/Turret.cc
r10004 r10008 78 78 currentPitch < lowerBoundary && value.x < 0) 79 79 { 80 return;80 //return; 81 81 } 82 82 83 //SpaceShip::rotatePitch(value);83 SpaceShip::rotatePitch(value); 84 84 } 85 85 … … 92 92 Radian upperBoundary = startYaw + limit; 93 93 Radian lowerBoundary = startYaw - limit; 94 orxout() << currentYaw << " " << this->getOrientation().getRoll() << endl;95 94 /*if(upperBoundary >= Radian(Degree(180))); 96 95 { … … 117 116 void Turret::rotateRoll(const Vector2& value) 118 117 { 119 return;118 SpaceShip::rotateRoll(value); 120 119 } 121 120 … … 137 136 void Turret::tick(float dt) 138 137 { 138 orxout() << "Pitch: " << this->getOrientation().getPitch() << "\tYaw: " << this->getOrientation().getYaw() << "\tRoll: " << this->getOrientation().getRoll() << endl; 139 139 if(!gotOrient_) 140 140 { -
code/branches/turretFS14/src/modules/objects/Turret.h
r10004 r10008 65 65 bool gotOrient_; 66 66 Quaternion startOrient_; 67 Quaternion firstOrient_;68 67 }; 69 68 }
Note: See TracChangeset
for help on using the changeset viewer.