ShUr1k3n
19-12-2009 16:51:33
How can i define collision groups with Actors?
I tried to use something like this:
But they still collide, then i tried this code:
And they collide again :S
What do i need to do more, to make this working?
Thanks.
I tried to use something like this:
...
mBall = mRenderSystem->createBody(NxOgre::SphereDescription(1.75f) , NxOgre::Vec3(0,200, 0), "ball.mesh");
mBall->setGroup(0);
mBall2 = mRenderSystem->createBody(NxOgre::SphereDescription(1.75f) , NxOgre::Vec3(0,200, 0), "ball.mesh");
mBall2->setGroup(1);
...
But they still collide, then i tried this code:
mScene->getScene()->setGroupCollisionFlag(0,1,false);
And they collide again :S
What do i need to do more, to make this working?
Thanks.