I'm quite sure this is a bug, either in the reference or the Dark Physics header file (otherwise I've made a stupid mistake).
When I try to use this function:
dbPhyRigidBodyForce
I get an error from the compiler:
error C3861: 'dbPhyRigidBodyForce': identifier not found
The function is clearly states in the reference (the text below is quoted directly out of it).
Quote: "Description
Apply a force or impulse to the rigid body.
Syntax
void dbPhyRigidBodyForce ( int iID, float fForceX, float fForceY, float fForceZ, float fX, float fY, float fZ, int iMode );
Parameters
int iID
ID number of the rigid body
float fForceX
force on the X axis
float fForceY
force on the Y axis
float fForceZ
force on the Z axis
float fX
location on X axis in global space to apply force
float fY
location on Y axis in global space to apply force
float fZ
location on Z axis in global space to apply force
int iMode
the method of force to apply from a selection of – 1, force, has unit of mass * distance / time ^ 2 2, impulse, has unit of mass * distance / time 3, velocity change, has unit of distance / time, effect is mass independent 4, smooth impulse, same as impulse but effect is applied over all substeps of physics update 5, acceleration, has unit of distance / time ^ 2, an acceleration, treated like a force except the mass is not divided out before integration
Return
n/a "
I'm quite sure it is not a mistake with my coding, because I can use most other commands instead of it on that line successfully.
I also believe there is a command very similar to dbPhyRigidBodyForce not mentioned in the manual:
dbPhy
AddRigidBodyForce
Plus, there are some other commands I suspect of having the same problem (although I haven't tried them all). I will edit later if I find any more.
Sorry in advance if I made a silly mistake, sometimes the obvious reasons just don't reach me.
Thanks
BTW, I also have a thread in the Dark GDK board requesting support for the same issue, so sorry for the kind of double post.
Intel Core 2 Duo 6600 2GB DDR2 RAM Radeon X1600 Series Realtek Sound System
Persist and you will succeed.