I am considering adding physics capability to Xith3d. Like shadowing, you would pick sub-roots of your scenegraph to inidcate the root of an “object”, even if the object is really made up of lots of shapes. You could supply collision geometry or it will calculate a convex hull for the geometry below it. You would also assign a mass to the object so that momentum, friction and inertia can be properly calculated.
You would be able to attach Motions to the objects, which are similar to the movement behavior interpolators of Java3d, execpt that these motions will honor mass, volume, velocity and collisions.
I really don’t want to write a super sophisticated physics engine, but I would like to expose the framework so that people can build on the engine to make it more sophisticated, or even hook in a third-party engine.
Any suggestion on how to begin? Any java physics libraries out there? Any thoughts on this idea?