toglia
06-05-2008 02:45:48
I know there's some stuff like making the body "static:yes" or:
Body->raiseBodyFlag(NX_BF_FROZEN);
But the thing is that sometimes I'm adding torque to a body by code while some actors are colliding with it, and if these actors are heavy enough they can make my body reduce its torque meaningfully which is exactly what I don't want.
What I need is that this body doesn't change its direction, angular velocity or torque cause of collisions with other actors.
BTW, whats the differece between:
Body->getNxActor()->raiseActorFlag(NX_AF_DISABLE_COLLISION);
Body->getNxActor()->raiseActorFlag(NX_AF_DISABLE_RESPONSE);
Thanks!
Body->raiseBodyFlag(NX_BF_FROZEN);
But the thing is that sometimes I'm adding torque to a body by code while some actors are colliding with it, and if these actors are heavy enough they can make my body reduce its torque meaningfully which is exactly what I don't want.
What I need is that this body doesn't change its direction, angular velocity or torque cause of collisions with other actors.
BTW, whats the differece between:
Body->getNxActor()->raiseActorFlag(NX_AF_DISABLE_COLLISION);
Body->getNxActor()->raiseActorFlag(NX_AF_DISABLE_RESPONSE);
Thanks!