Module: Lotu::Collidable::ClassMethods

Defined in:
lib/lotu/behaviors/collidable.rb

Instance Method Summary collapse

Instance Method Details

#collides_as(tag, opts = {}) ⇒ Object



63
64
65
66
67
68
# File 'lib/lotu/behaviors/collidable.rb', line 63

def collides_as tag, opts={}
  default_opts = { :shape => :circle }
  opts = default_opts.merge!(opts)
  behavior_options[Collidable] ||= Hash.new
  behavior_options[Collidable][tag] = opts
end