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.
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.
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!