Dumb Question: AS3 Packages?

Hi all. I have a really dumb question, but the answer doesn't seem to be in an obvious place. I have downloaded the example files for BasicWorld and taken a look at the source code, but there are .as files that are stated as includes there. They don't seem to be in the zip file I downloaded. Where can I get these includes?

import Box2D.Dynamics.*;
import Box2D.Collision.*;
import Box2D.Collision.Shapes.*;
import Box2D.Common.Math.*;

By the way, what I am trying to do is apply physics to an imported Collada file. I think it is fabulous to be able to bring in a model from another ap like Blender, but I don't want to walk through the walls if I am building a first person world. If anyone knows of anyone else that is working on this already, I would greatly appreciate a point in the right direction.
hi IngThing,

ok, u have to download the box2d engine (Box2DFlashAS3 1.4.3.1 fix released)

follow
http://box2dflash.sourceforge.net/

then extract the files to a location on your drive,
then add the path to your class settings in Flash
(publish settings->flash->Settings) and then add the path to the Box2D folder,
or alternatively, you can put the extracted Box2D folder in your working folder.

i think that is what u'r asking
and hope that helps

cheers
Clark
I'm confused... are you using Papervision3D/Sandy or something? Also as clarklin said, make sure you have the Flash version, they are in a separate place, not included on the box2d.org site. If you are still having trouble, what development environment are you using? (ie Flash CS3, Flex Builder, Flex SDK, etc...)
Thanks. I got the packages and used them successfully. I have been looking at the Collada.as class file for Papervision3D. It seems that only transforrm, materials and mesh information are pulled in from the XML. Collada files also include physics information if they have been developed in the 3D authoring tool. (I use Blender.) Not sure if the Collada class should be extended or rewritten.

So I was thinking that if the info from the Collada file could be associated some way with the physics engine, we could be way ahead on 3D for Flash. One thing that is really important is collisions with walls for first person walk-throughs. I've seen only one person do this so far, and he hasn't released his code.

The example for the Box2D engine that uses Papervision objects takes the physical body extents and multiplies them by two so that a cube can be created. I would like to see the geometry from the Collada file become a physical body.

Anyway, that is the extent of my brainstorming. I only just woke up from business analysis back to development recently, so if you know of anyone who is working with Collada, Papervision, and Box2D, please let me know.
If you cheat a little you could use Box2D with a first-person walkthrough type programs. The simplest case would be if all walls were perfectly vertical, and there were no stairs or anything. I'm sure you could make something of the complexity of Wolfenstein3D or Doom1/2 even with a little ingenuity. Except you would have better textures and lighting probably 😉

Check out this topic on the Sandy forums. Fourth post down. You could also try to port Bullet to AS3... Actually, it looks like someone has at least the intention of doing so: Orbital4p. There is no code there, and not much of anything really, but maybe you can find his email address and ask what his plans are.

EDIT: I just realized there's a Java port of Bullet. If one were to port to AS3 I would think it would be easier to go from Java to AS3 than C++ to AS3.
Thanks much Brainclog! I will check it out.
Do you happen to know if there is a tool I can use to automatically port from java to as3? One of the posts I read said something about a plug-in for Flex. I am not using Flex (yet.)
I don't know, there might be a program that would do some of it, but I doubt it would be a completely automated process. I've never looked for anything like that so I'm not sure.
Okay well when I know something I will post it here. I looked at the java for Bullet and it seems a pretty straightforward task to rewrite it, just tedious. I am not a java developer but could learn to translate the syntax I guess. 🙄 (Not really complaining. Someone has done the hard part already which is getting it into java.) Thanks again!
There is a plug-in for Eclipse described here:

http://www.flashinsider.com/2005/08/19/ ... tionscript

I am downloading Eclipse right now.

http://www.eclipse.org/downloads/

Not sure which version to use, but figured that the classic version would be a good place to start.

Two steps forward, one step back. 😀

I'll let you know if I make any progress.

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