motion/joybox/physics/world.rb in joybox-0.0.6 vs motion/joybox/physics/world.rb in joybox-1.0.0

- old
+ new

@@ -5,24 +5,24 @@ def self.defaults { gravity: [0, 0], allows_sleeping: true, - continuos_physics: true + continuous_physics: true } end def self.new(options) options = options.nil? ? defaults : defaults.merge!(options) - world = World.alloc.init + world = World.alloc.init world.gravity = options[:gravity] world.allowsSleeping = options[:allows_sleeping] - world.continuosPhysics = options[:continuos_physics] + world.continuousPhysics = options[:continuous_physics] world end @@ -36,10 +36,10 @@ def step(options = {}) options = options.nil? ? step_defaults : step_defaults.merge!(options) - stepWithDelta(options[:delta], + stepWithDelta(options[:delta], velocityInteractions: options[:velocity_interactions], positionInteractions: options[:position_interactions]) end