Changeset 9686 in orxonox.OLD for branches/new_class_id/src/lib/particles/box_emitter.cc
- Timestamp:
- Aug 22, 2006, 2:36:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/particles/box_emitter.cc
r9406 r9686 23 23 #include "util/loading/factory.h" 24 24 #include "debug.h" 25 #include "stdlibincl.h"26 25 27 28 26 #include "class_id.h" 29 27 30 28 CREATE_FACTORY(BoxEmitter, CL_BOX_EMITTER); 31 29 NewObjectListDefinitionID(BoxEmitter, CL_BOX_EMITTER); 32 30 /** 33 31 * standard constructor … … 68 66 void BoxEmitter::init() 69 67 { 70 this-> setClassID(CL_BOX_EMITTER, "BoxEmitter");68 this->registerObject(this, BoxEmitter::_objectList); 71 69 this->setSize(1.0f,1.0f,1.0f); 72 70 } … … 103 101 104 102 Vector box = this->getAbsCoor() + 105 xDir * ((float)rand()/RAND_MAX -.5) +106 yDir * ((float)rand()/RAND_MAX -.5) +107 zDir * ((float)rand()/RAND_MAX -.5);103 xDir * ((float)rand()/RAND_MAX -.5) + 104 yDir * ((float)rand()/RAND_MAX -.5) + 105 zDir * ((float)rand()/RAND_MAX -.5); 108 106 109 107 // ROTATIONAL CALCULATION (this must not be done for all types of particles.)
Note: See TracChangeset
for help on using the changeset viewer.