Hi all, had no lick finding an answer in search so here goes. Im still trying to learn physics so beware faulty jargon/terminology.
Is it OK to use the temp vector function "vector()" when using phcon_setparams1 & 2?
eg
Code:
var tmp_hinge = phcon_add(PH_HINGE, my, you);
phcon_setparams1(tmp_hinge, you.x, vector(1,0,0), nullvector);
phcon_setparams2(tmp_hinge, vector(0,90,0), nullvector, nullvector);
I have no need to modify the constraints at any time(except to remove the entities from physics completely),
but I do want to be able to read their positions back regularly with phcon_getposition(tmp_hinge, tmpVec);

I ask this because I have many (10+) entities in a constrint-train that are all working fine.
But it seems once I get over a certain number of linked enities, the results from phcon_getposition
seem to start getting flakey, even though the constraints themselves appear visually correct.

[EDIT] the odd results I get back from phcon_getposition are a (var) rotation value of -2097152.
I dont think this is a real number, because if I try to use ABS on it, its still a negative number.
The joint doesnt need to movehasnt moved by any significant angle, this this number keeps being returned
on various joints 3-4 times a second.
PS Im running 7.73


Last edited by EvilSOB; 04/30/09 12:35.

"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial