hi core2uu,
it isn't that difficult, if you have some knowledge of c++:
first of all you must include the headerfile.
//declare a pointer to the collision.The "*" tells the compiler that the variable is a pointer.
OpenSourceCollision:: ObjectCollisionClass* Variable;
//now you initialize the collision / if you have trouble with the new operator look
here
Variable=new OpenSourceCollision:: ObjectCollisionClass(ObjectNumber);
Important: If you overwrite the collision pointer you lose access to the collision. if you want do delete the collision from memory, write:
delete Variable;
now somwhere in you mainloop you must call:
Variable->Update();
if you want to call the collision, write:
Variable->Intersect(D3DXVECTOR3(x1,y1,z1),D3DXVECTOR3(x2,y2,z2));
otherwise you can also create a start and end point
D3DXVECTOR3 startpoint=D3DXVECTOR3(x,y,z);
D3DXVECTOR3 endpoint=D3DXVECTOR3(x,y,z);
and then you can write:
float d=Variable->Intersect(startpoint, endpoint);
D3DXVECTOR3 is class/struct that comes with directx and is declared in d3dx9math.h. it has many useful constructors.
you should also check whether you object has bones/vertexmanipulation. in this case the collision won't work.
FINAL VERSION RELEASED!!!!