Sha256: ae6701e013fe263ca0eb9e9e0ffbca04312c4e87780329f75997d0f78cc48d43

Contents?: true

Size: 338 Bytes

Versions: 12

Compression:

Stored size: 338 Bytes

Contents

module Gosuplus
  class Body
    attr_accessor :position, :a, :width, :height
    
    def initialize(position, width, height, angle = 90)
      raise ArgumentError, 'Position is not a instance of Vec2' unless position.is_a? Vec2
      
      @position, @width, @height, @angle = position, width, height, angle
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
Gosuplus-1.0.21 lib/Gosuplus/body.rb
Gosuplus-1.0.20 lib/Gosuplus/body.rb
Gosuplus-1.0.19 lib/Gosuplus/body.rb
Gosuplus-1.0.18 lib/Gosuplus/body.rb
Gosuplus-1.0.17 lib/Gosuplus/body.rb
Gosuplus-1.0.16 lib/Gosuplus/body.rb
Gosuplus-1.0.15 lib/Gosuplus/body.rb
Gosuplus-1.0.14 lib/Gosuplus/body.rb
Gosuplus-1.0.13 lib/Gosuplus/body.rb
Gosuplus-1.0.12 lib/Gosuplus/body.rb
Gosuplus-1.0.11 lib/Gosuplus/body.rb
Gosuplus-1.0.1 lib/Gosuplus/body.rb