Class: BulldogPhysics::Particles::Projectile
- Inherits:
-
Object
- Object
- BulldogPhysics::Particles::Projectile
- Defined in:
- lib/Particles/projectile.rb
Instance Attribute Summary collapse
-
#particle ⇒ Object
Returns the value of attribute particle.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
Instance Method Summary collapse
-
#initialize ⇒ Projectile
constructor
A new instance of Projectile.
Constructor Details
#initialize ⇒ Projectile
Returns a new instance of Projectile.
7 8 9 10 |
# File 'lib/Particles/projectile.rb', line 7 def initialize() @particle = Particle.new @start_time = 0 end |
Instance Attribute Details
#particle ⇒ Object
Returns the value of attribute particle.
5 6 7 |
# File 'lib/Particles/projectile.rb', line 5 def particle @particle end |
#start_time ⇒ Object
Returns the value of attribute start_time.
5 6 7 |
# File 'lib/Particles/projectile.rb', line 5 def start_time @start_time end |