lib/units/thing.rb in gosu_extensions-0.3.2 vs lib/units/thing.rb in gosu_extensions-0.3.3

- old
+ new

@@ -33,10 +33,10 @@ raise "Shape #{form} does not exist." unless shape_class params = [] params << CP::Body.new(self.mass, self.moment) params += args - params << CP::Vec2.new(0.0, 0.0) + params << CP::Vec2.new(0.0, 0.0) unless CP::Vec2 === args.first @shape = shape_class.new *params end end def mass amount \ No newline at end of file