Sha256: c8c993a272184bb88a5fae69d5fa56bf4cdf8e83f6f5610abff002ff354f7427

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

if defined? CP
  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
  def vec2(*args)
    Vector2.new *args
  end
end

ZERO_VEC_2 = vec2(0,0) unless defined? ZERO_VEC_2

module Math
  HALF_PI = PI / 2.0 unless defined? HALF_PI
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gamebox-0.5.5 lib/gamebox/core/physics.rb
gamebox-0.5.4 lib/gamebox/core/physics.rb
gamebox-0.5.2 lib/gamebox/core/physics.rb
gamebox-0.5.1 lib/gamebox/core/physics.rb
gamebox-0.5.0 lib/gamebox/core/physics.rb
gamebox-0.4.1 lib/gamebox/core/physics.rb