155156157158159160161162163
rf = new GridRewardFunction(); world.setRewardFunction(rf); world.addCollisionListener(rf); GoalBody goal = new GoalBody(525, 125); goal.setReward(0); world.addFixedBody(goal); }