Sha256: 1a596b289737986c5700a11b1b20b9ac30d048e5ea1114458fcc7aa0b1a06998

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

if defined? CP
  ZERO_VEC_2 = vec2(0,0) unless defined? ZERO_VEC_2
  def vec2(*args)
    CP::Vec2.new *args
  end

  class CP::Shape::Circle
    attr_accessor :actor
  end
  class CP::Shape::Poly
    attr_accessor :actor
  end
  class CP::Shape::Segment
    attr_accessor :actor
  end

else
  ZERO_VEC_2 = Ftor.new(0,0)
  def vec2(*args)
    Ftor.new *args
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gamebox-0.4.0.rc5 lib/gamebox/core/physics.rb
gamebox-0.4.0.rc4 lib/gamebox/core/physics.rb
gamebox-0.4.0.rc3 lib/gamebox/core/physics.rb
gamebox-0.4.0.rc2 lib/gamebox/core/physics.rb
gamebox-0.4.0.rc1 lib/gamebox/core/physics.rb