Does anyone have any sample code for physX car movement that doesn't use wheels? When I use this code the boat moves in global X direction not relative to the boats pan orientation. How do I make my nullvector variable the boat's new orientation?
Code:
while(1)
{
if (key_cuu == 1)
{
pXent_addforcelocal(my, vector(1000,0,0), nullvector);
}
if (key_cul == 1)
{
pXent_addtorquelocal(my, vector(0,0,1000));
}
if (key_cur == 1)
{
pXent_addtorquelocal(my, vector(0,0,-1000));
}
wait(1);
}
Re: physX forward movement after a pan
[Re: bpc31]
#371425 05/21/1100:2005/21/1100:20