Changeset 9087 in orxonox.OLD for branches/presentation/src/world_entities/space_ships
- Timestamp:
- Jul 4, 2006, 1:57:44 AM (19 years ago)
- Location:
- branches/presentation/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9078 r9087 110 110 this->airFriction = 2.0f; 111 111 112 112 113 this->setHealthMax(100); 113 114 this->setHealth(100); 114 115 116 117 /// 2D-MODE 118 this->travelHeight = 0.0f; 119 this->toTravelHeight = NULL; 120 this->travelSpeed = 0.0f; 115 121 this->travelNode = new PNode(); 122 123 116 124 // camera - issue 117 125 this->cameraNode.addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); … … 124 132 this->burstEmitter->setParent(this); 125 133 this->burstEmitter->setRelCoor(0, -0.7, 0); 126 this->burstEmitter->setRelDir(Quaternion(-M_PI _2, Vector(0,0,1)));134 this->burstEmitter->setRelDir(Quaternion(-M_PI, Vector(0,0,1))); 127 135 this->burstEmitter->setName("Spacecraft2D_Burst_emitter_Left"); 128 136 … … 203 211 { 204 212 dynamic_cast<Element2D*>(this->getWeaponManager().getFixedTarget())->setVisibility( true); 205 this->setPlaymode( this->getPlaymode());213 this->setPlaymode(Playable::Full3D /*this->getPlaymode()*/); 206 214 } 207 215 -
branches/presentation/src/world_entities/space_ships/spacecraft_2d.h
r9074 r9087 22 22 23 23 virtual void loadParams(const TiXmlElement* root); 24 25 void setTravelSpeed(float travelSpeed); 26 void setTravelHeight(float travelHeight); 27 28 24 29 virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f); 25 30 virtual void enter(); 26 31 virtual void leave(); 32 27 33 28 34 virtual void postSpawn(); … … 51 57 float mouseSensitivity; //!< the mouse sensitivity 52 58 59 /// Normal Movement. 60 Quaternion direction; //!< the direction of the Spacecraft2D. 61 float acceleration; //!< the acceleration of the Spacecraft2D. 62 float airFriction; //!< AirFriction. 53 63 64 float airViscosity; 65 66 67 /// 2D-traveling 54 68 PNode* travelNode; 69 float travelHeight; 70 float* toTravelHeight; 71 float travelSpeed; //!< the current speed of the Hove (to make soft movement) 55 72 73 /// Camera 56 74 PNode cameraNode; 57 75 float cameraLook; 58 76 float rotation; 59 77 60 // Vector velocity; //!< the velocity of the Spacecraft2D.61 Quaternion direction; //!< the direction of the Spacecraft2D.62 float travelSpeed; //!< the current speed of the Hove (to make soft movement)63 float acceleration; //!< the acceleration of the Spacecraft2D.64 float airFriction; //!< AirFriction.65 66 float airViscosity;67 78 68 79 ParticleEmitter* burstEmitter;
Note: See TracChangeset
for help on using the changeset viewer.