As a learning exercise I'm trying to make a physics testbed with SVN HEAD. I've gotten as far as repurposing the physics tutorial into a standalone program and recognizing when an object is clicked on. I want (as a start) to be able to "pick up" objects and drag them around with the mouse, but I currently have two problems:
1) I can't figure out how to get all the information about a body associated with an object. Specifically I need to know if a body is dynamic or static, but I don't see any way to determine that for an arbitrary object. I thought I was onto something using orxStructure_TestFlags() and orxBODY_DEF_KU32_FLAG_DYNAMIC, but that didn't work out.
2) It looks like there's no MouseJoint. I'd accept it if this (and perhaps the preceeding issue) is something too specific to Box2D to be included in Orx's API, but if that's the case can someone recommend a good alternative? orxObject_SetPosition doesn't play well with the physics engine. I've only used Box2D a little before this (and then only version 2.0) so maybe something equivalent can be done with the other joints.
I'm also trying to understand Orx's object system; are orxOBJECTs supersets of orxBODY, and is the proper way of going from the former to the latter to cast the object with orxBODY()? Or with orxOBJECT_GET_STRUCTURE()?