diff options
Diffstat (limited to 'src/objects/Projectile.cpp')
| -rw-r--r-- | src/objects/Projectile.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/objects/Projectile.cpp b/src/objects/Projectile.cpp new file mode 100644 index 0000000..fe8b0c6 --- /dev/null +++ b/src/objects/Projectile.cpp @@ -0,0 +1,15 @@ +#include "common.h" + +#include "Projectile.h" + +CProjectile::CProjectile(int32 model) : CObject() +{ + m_fMass = 1.0f; + m_fTurnMass = 1.0f; + m_fAirResistance = 0.99999f; + m_fElasticity = 0.75f; + m_fBuoyancy = GRAVITY * m_fMass * 0.1f; + bExplosionProof = true; + SetModelIndex(model); + ObjectCreatedBy = MISSION_OBJECT; +} |
