hmmm, i did some testing. when constructing hinges, i am able to pass vector 1 and 2 values like so:
NDB_SetVector 1, xpos-10, ypos-10, zpos
NDB_SetVector 2, 10, 5, 0
are the xyz values in vector 2 used for vector length? i don't quite understand. what seems to happen (with the above code) is that the hinge becomes responsive on the x and y axes, and the x axis has twice as much play as the y axis. no matter what values are in vector 2 when i create a hinge, the "hinging" is a result of the ratio of the active axes.
here's an example:
http://forum.thegamecreators.com/xt/xt_apollo_download.php?i=442746
the hinge on the left had:
NDB_SetVector 2, 10, 5, 0
the hinge on the right had:
NDB_SetVector 2, 5, 10, 0
...when i ran this simulation. you see how on the left the hinge the hinge rotates about the x axis and the z axis (but twice as much) and on the right it rotates moreso on the y axis than the x axis. the "10, 5, 0" could just as well have been "20, 5, 0" because the result is a ratio of the active axes. in your help file, it says
Quote: "Before calling this command you must fill temp vector 1 with the position of the joint in global space. You must also fill temp vector 2 with the direction of the pin."
and i look at your demo05 code from the current release and you have
Quote: "NDB_SetVector 2, 0.0, 0.0, 1.0"
which makes the hinge aligned with the z axis. i just don't get what type of variables those are in vector 2 on construction. can you help me understand?
(maybe i should have taken physics 101)
"Creativity is knowing how to hide your sources" - Einstein