samples/04_physics_and_collisions/09_arbitrary_collision/app/main.rb
def calc args
  for b in args.state.ballParents
    b.update args
  end

  for s in args.state.squares
    s.update args
  end

  for l in args.state.lines
    l.update args
  end

  for t in args.state.tshapes
    t.update args
  end



end
#Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
def calc args
  for b in args.state.ballParents
    b.update args
  end
  for s in args.state.squares
    s.update args
  end
  for l in args.state.lines
    l.update args
  end
  for t in args.state.tshapes
    t.update args
  end
end
def calc args for b in args . state . ballParents b . update args end for s in args . state . squares s . update args end for l in args . state . lines l . update args end for t in args . state . tshapes t . update args end end
Calls all methods necessary for performing calculations
Calls all methods necessary for performing calculations
args