- Timestamp:
- Apr 23, 2015, 4:19:02 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/weaponFS15/src/modules/weapons/projectiles/GravityBombField.cc
r10369 r10391 7 7 8 8 #include "GravityBombField.h" 9 #include "graphics/Model.h" 9 10 10 11 namespace orxonox{ 11 12 RegisterClass(GravityBombField); 12 13 13 const float GravityBombField::FORCE_FIELD_LIFETIME = 5;14 const float GravityBombField::FORCE_SPHERE_START_RADIUS = 100;15 const float GravityBombField::FORCE_SPHERE_START_STRENGTH = - 1000;14 const float GravityBombField::FORCE_FIELD_LIFETIME = 100; 15 const float GravityBombField::FORCE_SPHERE_START_RADIUS = 500; 16 const float GravityBombField::FORCE_SPHERE_START_STRENGTH = -500; 16 17 17 18 GravityBombField::GravityBombField(Context* context) : ForceField(context) … … 22 23 setDiameter(FORCE_SPHERE_START_RADIUS); 23 24 setMode(modeInvertedSphere_s); 25 setCollisionResponse(false); 26 27 //Attach Demo Model for debuging. 28 Model* model = new Model(this->getContext()); 29 model->setMeshSource("rocket.mesh"); //Demo Model from SimpleRocket 30 model->scale(0.7f); 31 this->attach(model); 24 32 } 25 33 … … 32 40 if(lifetime_ < 0) 33 41 { 42 orxout(debug_output) << "Timeout. Destroying field." << endl; 34 43 this->destroy(); 35 44 }
Note: See TracChangeset
for help on using the changeset viewer.