Pottej
22-06-2007 14:23:27
Hi,
In my game I'm trying to make the character do something where I want total control over his movement, therefore I dont want PhysX moving him due to collisions. I am unsure as to how to turn off the collisions, I know you can disable the collisions on the kinematic actor through the NxController, but that wont stop the character from colliding with the world.
I've tried writing in my own setters for the active group mask variables, but changing them doesn't seem to be making a difference. I wondered if anyone knew how to do it? From the Ageia docs it seems I want to be changing the 'activeGroups' parameter or the 'groupsMask'. If all my actors are in group 0, how do I make it so my character doesnt collide with them?
Here's what I've tried at the moment, none work:
Cheers,
Pottej
In my game I'm trying to make the character do something where I want total control over his movement, therefore I dont want PhysX moving him due to collisions. I am unsure as to how to turn off the collisions, I know you can disable the collisions on the kinematic actor through the NxController, but that wont stop the character from colliding with the world.
I've tried writing in my own setters for the active group mask variables, but changing them doesn't seem to be making a difference. I wondered if anyone knew how to do it? From the Ageia docs it seems I want to be changing the 'activeGroups' parameter or the 'groupsMask'. If all my actors are in group 0, how do I make it so my character doesnt collide with them?
Here's what I've tried at the moment, none work:
getCharacter()->setActiveGroup(1); // disable collisions test
getCharacter()->getNxController()->setCollision(false);
getCharacter()->getNxController()->getActor()->setGroup(1);
Cheers,
Pottej