Well, I'm working on a Newton function library. Here is what there is so far. Functions are:
******************************************************************
*****************UPDATED FILE IN LINK*******************************
******************************************************************
StartNewton(gravity as float)
RotateBody(object,ang x,ang y, ang z)
PositionBody(object,pos x,pos y,pos z)
CreateDynamicBox(object,mass)
CreateDynamicSphere(object,mass)
CreateDynamicConHull(object,mass)
CreateStaticBox(object)
CreateTreeCol(object)
CreateBallJoint(object1,object2)
CreateHingeJoint(object1,object2)
CreateCorkScrewJoint(object1,object2)
CreateSliderJoint(object1,object2)
CreateUpVectorJoint(object)
SetWater(density,linear viscosity,angular viscosity)
SetObjectWater(object,buoyancy,water height)
UpdateNewton()
RayCast(distance,startx,starty,startz)
SetWorldSize(xsize,ysize,zsize)
MoveBody(object,value)
CreateUnsignedDynamicBox(mass,size x,size y,size z)
CreateUnsignedDynamicSphere(mass,size x,size y,size z)
AddRotationForce(objid,force x,force y,force z)
FreezeBody(objid)
These are object orientated, so you don't have to really keep track of an objects body. The functions get the body for you,so you just give the object number.
Joints work by attatching object2 to object1 at whatever angle and position object2 is at. So,if you want a ball and socket joint to be closer,simply move the dbp object closer before making the dynamic body. Or,reposition the body closer to the parent. Rotate the dbp object if you want the joint to be rotated that way.
link:
http://www.savefile.com/files/6661919
Edits:
-Demo now included in the project.
-All joints can be used now.
-Buoyancy commands now added.
-Added two simple functions.
-Added two unsigned collision hulls.
-Added move body function.
-Added a function to add a rotation force.
-Added an object oriented freeze body command.
all ben needs is his band,his guitar,and his computer