Class: Engine::Physics::Collision

Inherits:
Object
  • Object
show all
Defined in:
lib/engine/physics/collision.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#impulseObject

Returns the value of attribute impulse.



5
6
7
# File 'lib/engine/physics/collision.rb', line 5

def impulse
  @impulse
end

#pointObject

Returns the value of attribute point.



5
6
7
# File 'lib/engine/physics/collision.rb', line 5

def point
  @point
end