Mogre+Mogre.PhysX(eyecm-physx) Bug Report

issingle

22-09-2009 14:36:08

hi,smoove
i found a bug in eyecm-physx.
when we set "ActorGroupPairFlags" in the code:
m_PhysicsScene.ActorGroupPairFlags[0, 0] = ContactPairFlags.IgnorePair;
ErrorStream report a exception:
message = 0x047CEA90 "Scene::setActorGroupPairFlags: trying to set unsupported flag; ignored"

m_PhysicsScene.ActorGroupPairFlags[0, 0] = ContactPairFlags.NotifyOnStartTouch is OK.And
the sample in PhsyX SDK2.8.1,gScene->setActorGroupPairFlags(0,0,NX_IGNORE_PAIR ); is OK too.

issingle

23-09-2009 03:25:31

Wrapper is ok.

In 2.8.1 sdk docs, NX_IGNORE_PAIR is not permitted for "setActorGroupPairs" Method.
But it indeed works in SDK's Sample "SampleContactStreamIterator ".

In Morge+PhysX,if we want to disable collision dectect inside a group,we can do as following code:
...
foreach(Actor actor in scene.Actors){
foreach(Shpae shape in actor.Shapes){
shape.Group=1;
}
}
....
scene.GroupCollisionFlags[1,1]=false;