![]() |
VR-Forces Developer's Guide
|
Defines the physical characteristics of a bullet type.
Public Member Functions | |
| DtBulletDefinition () | |
| virtual | ~DtBulletDefinition () |
| virtual double | muzzleVelocity () const |
| virtual double | maxLifetime () const |
| virtual double | maxDistance () const |
| virtual double | mass () const |
| virtual double | caliber () const |
| virtual void | setMuzzleVelocity (double velocity) |
| virtual void | setMaxLifetime (double lifetime) |
| virtual void | setMaxDistance (double distance) |
| virtual void | setMass (double mass) |
| virtual void | setCaliber (double caliber) |
| virtual int | tracerInterval () const |
| virtual void | setTracerInterval (int n) |
| virtual const DtTracerDefinition & | tracerDefinition () const |
| virtual void | setTracerDefinition (const DtTracerDefinition &def) |
Protected Attributes | |
| double | myMuzzleVelocity |
| double | myMaxLifetime |
| double | myMaxDistance |
| double | myMass |
| double | myCaliber |
| int | myTracerInterval = 0 |
| DtTracerDefinition | myTracerDefinition |
| makVrv::DtBulletDefinition::DtBulletDefinition | ( | ) |
Default constructor.
|
virtual |
Destructor.
|
virtual |
Returns the muzzle velocity in metres per second.
|
virtual |
Returns the maximum lifetime in seconds.
|
virtual |
Returns the maximum travel distance in metres.
|
virtual |
Returns the mass in kilograms.
|
virtual |
Returns the caliber in millimetres.
|
virtual |
Sets the muzzle velocity in metres per second.
|
virtual |
Sets the maximum lifetime in seconds.
|
virtual |
Sets the maximum travel distance in metres.
|
virtual |
Sets the mass in kilograms.
|
virtual |
Sets the caliber in millimetres.
|
virtual |
Returns the tracer interval: 1 = every round is a tracer, N = every Nth round. 0 = no tracers (ball ammo only).
|
virtual |
Sets the tracer interval.
|
virtual |
Returns the tracer definition describing the visual appearance of tracer rounds.
|
virtual |
Sets the tracer definition.
|
protected |
Initial speed leaving the barrel in metres per second.
|
protected |
Maximum time in seconds before the projectile despawns.
|
protected |
Maximum travel distance in metres before despawning.
|
protected |
Mass in kilograms.
|
protected |
Diameter in millimetres.
|
protected |
Tracer every Nth round; 0 = no tracers.
|
protected |
Visual/physical appearance of tracer rounds.