Class: Engine::Physics::Collision
- Inherits:
-
Object
- Object
- Engine::Physics::Collision
- Defined in:
- lib/engine/physics/collision.rb
Instance Attribute Summary collapse
-
#impulse ⇒ Object
Returns the value of attribute impulse.
-
#point ⇒ Object
Returns the value of attribute point.
Instance Method Summary collapse
-
#initialize(impulse, point) ⇒ Collision
constructor
A new instance of Collision.
Constructor Details
#initialize(impulse, point) ⇒ Collision
Returns a new instance of Collision.
7 8 9 10 |
# File 'lib/engine/physics/collision.rb', line 7 def initialize(impulse, point) @impulse = impulse @point = point end |
Instance Attribute Details
#impulse ⇒ Object
Returns the value of attribute impulse.
5 6 7 |
# File 'lib/engine/physics/collision.rb', line 5 def impulse @impulse end |
#point ⇒ Object
Returns the value of attribute point.
5 6 7 |
# File 'lib/engine/physics/collision.rb', line 5 def point @point end |