lib/gamebox/core/arbiter.rb
# returns true if the projections overlap
returns true if the projections overlap
returns true if the projections overlap
def project_and_detect(axis, a, b)
    a_min, a_max = send("#{a.shape_type}_interval", axis, a)
    b_min, b_max = send("#{b.shape_type}_interval", axis, b)
    a_min <= b_max && b_min <= a_max
  end
def project_and_detect ( axis , a , b ) a_min , a_max = send ( "#{a.shape_type}_interval" , axis , a ) b_min , b_max = send ( "#{b.shape_type}_interval" , axis , b ) a_min <= b_max && b_min <= a_max end
returns true if the projections overlap
returns true if the projections overlap
axis
<not_specific>
a
<not_specific>
b
<not_specific>