Dominance groups on Bloody Mess?

caroxoze

19-04-2010 15:37:41

Hi everyone.

I'm fairly new to NxOgre and i'm a little bit lost in the dominance groups topic... Basically i want to do what betajaen described in this post:

You create two (or more) dominance groups, and pair them together. Then you specifiy (as a float) how one group is dominant over another. Say a Horse is more dominant than a Fly. So when a Fly hits a horse - the horse won't move, or when the horse hit's a load of flies - it's velocity won't slow down.

DominanceGroup* mHorse = mScene->createDominanceGroup("Horse");
DominanceGroup* mFly = mScene->createDominanceGroup("Fly");
mScene->setDominanceGroupPair(mHorse, mFly, 1.0, 0.0f);
(posted on Thu Jul 24, 2008 )

This seems to no longer work in the newest version... How can i achieve this?

EDIT: Forgot to say that i can set a group to my OGRE3DBody, i just can't figure out how to set the relations between groups.