Changeset 5671 in orxonox.OLD for trunk/src/lib/particles
- Timestamp:
- Nov 21, 2005, 3:50:41 PM (19 years ago)
- Location:
- trunk/src/lib/particles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_emitter.cc
r5653 r5671 95 95 static_cast<PNode*>(this)->loadParams(root); 96 96 97 LoadParam NEW(root, "type", this, ParticleEmitter, setType)97 LoadParam(root, "type", this, ParticleEmitter, setType) 98 98 .describe("What type of emitter is this [dot, plane, cube, sphere]."); 99 99 100 LoadParam NEW(root, "size", this, ParticleEmitter, setSize)100 LoadParam(root, "size", this, ParticleEmitter, setSize) 101 101 .describe("How big the emitter is (no effect on dot-emitters)"); 102 102 103 LoadParam NEW(root, "rate", this, ParticleEmitter, setEmissionRate)103 LoadParam(root, "rate", this, ParticleEmitter, setEmissionRate) 104 104 .describe("How many particles should be emittet from this emitter"); 105 105 106 LoadParam NEW(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed)106 LoadParam(root, "inherit-speed", this, ParticleEmitter, setInheritSpeed) 107 107 .describe("the extent, the speed of the emitter has on the particles"); 108 108 109 LoadParam NEW(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity)109 LoadParam(root, "emission-velocity", this, ParticleEmitter, setEmissionVelocity) 110 110 .describe("How fast the particles are emittet (their initial speed)"); 111 111 112 LoadParam NEW(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum)112 LoadParam(root, "emission-momentum", this, ParticleEmitter, setEmissionMomentum) 113 113 .describe("How fast the particles rotation is at emissiontime (their initial momentum)"); 114 114 115 LoadParam NEW(root, "spread", this, ParticleEmitter, setSpread)115 LoadParam(root, "spread", this, ParticleEmitter, setSpread) 116 116 .describe("The angle the particles are emitted from (angle, deviation)"); 117 117 118 118 119 LoadParam NEW(root, "emission-direction", this, ParticleEmitter, setDirection);119 LoadParam(root, "emission-direction", this, ParticleEmitter, setDirection); 120 120 } 121 121 -
trunk/src/lib/particles/particle_system.cc
r5654 r5671 119 119 static_cast<PhysicsInterface*>(this)->loadParams(root); 120 120 121 LoadParam NEW(root, "max-count", this, ParticleSystem, setMaxCount)121 LoadParam(root, "max-count", this, ParticleSystem, setMaxCount) 122 122 .describe("the maximal count of Particles, that can be emitted into this system"); 123 123 124 LoadParam NEW(root, "life-span", this, ParticleSystem, setLifeSpan)124 LoadParam(root, "life-span", this, ParticleSystem, setLifeSpan) 125 125 .describe("sets the life-span of the Particles."); 126 126 127 LoadParam NEW(root, "conserve", this, ParticleSystem, setConserve)127 LoadParam(root, "conserve", this, ParticleSystem, setConserve) 128 128 .describe("sets the Conserve factor of the Particles (1.0: they keep all their energy, 0.0:they keep no energy)"); 129 129 130 LoadParam NEW(root, "type", this, ParticleSystem, setType)130 LoadParam(root, "type", this, ParticleSystem, setType) 131 131 .describe("sets the type of the Particles, (dot, spark, sprite or model)"); 132 132
Note: See TracChangeset
for help on using the changeset viewer.