Method: Mover#add_force
- Defined in:
- lib/fantasy/includes/mover.rb
#add_force(force) ⇒ Object
8 9 10 11 |
# File 'lib/fantasy/includes/mover.rb', line 8 def add_force(force) @acceleration ||= Coordinates.zero @acceleration += force end |