Method: MiniGL::Movement#mass
- Defined in:
- lib/minigl/movement.rb
#mass ⇒ Object (readonly)
The mass of the object, in arbitrary units. The default value for GameObject instances, for example, is 1. The larger the mass (i.e., the heavier the object), the more intense the forces applied to the object have to be in order to move it.
164 165 166 |
# File 'lib/minigl/movement.rb', line 164 def mass @mass end |