Yay! New version!

Major new features:
  • PH_FIXED joints
  • support of NxJoint* pointers in Lite-C, so that you can store and pass them instead of using the entity - this is required from now on, if you establish more than one joint per entity. Of course, there are legacy functions that work always on the first joint; and all GS functions were modified to this behavior
  • you can set the default number of iterations globally via pXSetDefaultSolverIterationCount
  • typed access to joints (e.g. "give me the second ball joint of the my entity") and various helper functions
  • fixed a memory leak when calling pXcon_add more than once on entities

changelog:
  • bugfix: the userData member of actors wasn't resetted to NULL, so, it was not possible to detect if an actor already has an associated JointUserData object or not
  • change: the functions pXconGetLimits, pXconGetAxis were changed, so that they work as described for the first joint
  • change: pXconGetPrismaticLimits works now for the -first- prismatic (!) joint
  • change: pXconGetType returns the type of the first joint, otherwise PH_WHEEL if it is a wheel, otherwise 0 if it has no constraints at all, otherwise -1 if it has no joints, but wheels, otherwise -2 when an error occurs
  • new: pXconGetJointLimits returns the limits of a joint
  • new: pXconGetJointType returns the type of a joint
  • new: pXconGetJointAxis returns the axis of a joint
  • new: pXconGetTypedJoint... returns the joint with a given type by index, first, or last
  • new: pXconNumTypedJoints returns the number of joints of a given type, associated with an entity
  • new: pXconGetPrismaticJointLimits works like pXconGetPrismaticLimits, but for a specific prismatic (!) joint
  • new: pXcon_add support now the PH_FIXED joint constraint; a second entity is always required
  • new: pXentGetSolverIterationCount(Ref) retrieves the number of solver iterations of an entity
  • change: pXent_setiterations is deprecated now; use pXentSetSolverIterationCount instead
  • new: new pX.cpp/.h for all upcoming system-related functions (internal)
  • new: pXGetDefaultSolverIterationCount returns the default value for solver iterations, assigned to a new physics entity
  • new: pXSetDefaultSolverIterationCount can be used to change the default value for solver iterations, assigned to new physics entities

Fixes lots of bugs compared to the prior version, please use this now; link for dll and header: ackphysx.20111101.dll.h.rar; source to be checked out as always.

Last edited by HeelX; 11/01/11 15:18.