mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -04:00
init lists
This commit is contained in:
parent
e17e870997
commit
46fbc1d64d
@ -24,15 +24,13 @@
|
|||||||
// Description : constructor
|
// Description : constructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BaseParticleFactory::
|
BaseParticleFactory::
|
||||||
BaseParticleFactory() {
|
BaseParticleFactory() :
|
||||||
_mass_base = 1.0f;
|
_mass_base(1.0f),
|
||||||
_mass_spread = 0.0f;
|
_mass_spread(0.0f),
|
||||||
|
_terminal_velocity_base(PhysicsObject::_default_terminal_velocity),
|
||||||
_terminal_velocity_base = PhysicsObject::_default_terminal_velocity;
|
_terminal_velocity_spread(0.0f),
|
||||||
_terminal_velocity_spread = 0.0f;
|
_lifespan_base(1.0),
|
||||||
|
_lifespan_spread(0.0) {
|
||||||
_lifespan_base = 1.0f;
|
|
||||||
_lifespan_spread = 0.0f;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -41,11 +39,13 @@ BaseParticleFactory() {
|
|||||||
// Description : copy constructor
|
// Description : copy constructor
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
BaseParticleFactory::
|
BaseParticleFactory::
|
||||||
BaseParticleFactory(const BaseParticleFactory ©) {
|
BaseParticleFactory(const BaseParticleFactory ©) :
|
||||||
_terminal_velocity_base = copy._terminal_velocity_base;
|
_mass_base(copy._mass_base),
|
||||||
_terminal_velocity_spread = copy._terminal_velocity_spread;
|
_mass_spread(copy._mass_spread),
|
||||||
_lifespan_base = copy._lifespan_base;
|
_terminal_velocity_base(copy._terminal_velocity_base),
|
||||||
_lifespan_spread = copy._lifespan_spread;
|
_terminal_velocity_spread(copy._terminal_velocity_spread),
|
||||||
|
_lifespan_base(copy._lifespan_base),
|
||||||
|
_lifespan_spread(copy._lifespan_spread) {
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user