feedback on my tutorial code

@maplehead
not to change the topic of this thread, but it should be noted that cs5's physics will not rival box2d.
there was another thread discussing that, i don't have the link at hand currently though.

basically consider how cs4's "3D" compairs to papervision3D.
Hi, I am trying to use your tutorial and I am on Step 6: Creating the world.

In the latest version of the flash port of Box2D, the b2World constructor is defined as follows:
Code:
public function b2World(gravity:b2Vec2, doSleep:Boolean)


So I am not sure what to do with the worldAABB that you define in your tutorial code?
Code:
public class Level extends MovieClip {

      public function Level() {
         // This is the constructor of this class
         trace('Level.as constructor');

         ...

         var worldAABB:b2AABB = new b2AABB();
         worldAABB.lowerBound.Set( -5000 / LevelVars.m2p, -5000 / LevelVars.m2p);
         worldAABB.upperBound.Set(  5000 / LevelVars.m2p,  5000 / LevelVars.m2p);
         var gravity:b2Vec2 = new b2Vec2(0, 9.8);
         var doSleep:Boolean = true;
         LevelVars.world = new b2World(worldAABB, gravity, doSleep)
      }

      ...

}


Any help would be greatly appreciated, thanks! 😁
Huh... I think I might just be using a wrong version of the Box2D Flash port...

In "Step 8: Creating our first LevelElement: Ground!" you use
Code:
import Box2D.Collision.Shapes.b2PolygonDef;


But there does not seem to be any such b2PolygonDef class...

Thanks again!

Original thread: https://box2d.org/forum/viewtopic.php?t=4214