Springz::ObjectInterface (Module)

In: Springz.rb

Each object attached at either end of a Springz spring must include this module (or its equivalent methods).

Methods

move_to   new  

Attributes

springz_loc  [RW]  The Springz::Point location for the object
springz_mass  [RW]  The mass of this object, used to determine how far this object moves compared to others attached to it (see Springz#apply and Springz.use_mass). Does not impart inertia.
springz_radius  [RW]  The radius of this object, used in collision prevention (see Springz#apply and Springz.uncollide)

Public Class methods

Public Instance methods

Equivalent to obj.springz_loc.move_to(x,y)

[Validate]