Module: WorldBuilder

Defined in:
lib/pbox2d.rb

Overview

Box2D factory

Class Method Summary collapse

Class Method Details

.build(app:, **opts) ⇒ Object



58
59
60
61
62
63
# File 'lib/pbox2d.rb', line 58

def self.build(app:, **opts)
  b2d = Box2D.new(app)
  b2d.init_options(opts)
  b2d.create_world
  b2d
end