jchmack
15-11-2007 01:00:18
I need to have body which will be reported by an intersection but will not interfere with a NxOgre::Character. So far i create the body and have these flags set.
if i have these flags set i get the intersection to report my body
but it seems that my character cant move through the body. Shouldn't NX_AF_DISABLE_RESPONSE make it where my character can go though but the body will still be reported by intersections / raycasts?
with this set of flags my character can move through the body but my intersection doesn't hit. Im guessing that NX_AF_DISABLE_COLLISION removes the body from being checked by the intersection.
Thx for any help in advance =)
CollisionBody->raiseActorFlag(NX_AF_DISABLE_RESPONSE);
CollisionBody->raiseBodyFlag(NX_BF_FROZEN);
CollisionBody->clearBodyFlag(NX_BF_KINEMATIC);
CollisionBody->putToSleep();
if i have these flags set i get the intersection to report my body
but it seems that my character cant move through the body. Shouldn't NX_AF_DISABLE_RESPONSE make it where my character can go though but the body will still be reported by intersections / raycasts?
CollisionBody->raiseActorFlag(NX_AF_DISABLE_COLLISION);
CollisionBody->raiseBodyFlag(NX_BF_KINEMATIC);
CollisionBody->putToSleep();
with this set of flags my character can move through the body but my intersection doesn't hit. Im guessing that NX_AF_DISABLE_COLLISION removes the body from being checked by the intersection.
Thx for any help in advance =)