Amnuriak
12-10-2009 13:28:59
Hi there,
I was just trying to get an actor with several distinct shapes to work but I stumbled upon one little problem: when pushing the shapes into an NxOgre::Array<NxOgre::Shape*> I need to position them in some way or they will overlap. Now how would I do this since there is nothing like a setPosition() method on NxOgre::Shape.
I searched the forum and found this topic dealing with multi shaped actors. That's exactly what I want and I was really glad ... until I saw there is no NxOgre::CompoundShape class anymore - at least not in the version I compiled. I grepped the whole sdk include directory but I only got one hit in NxOgreCommon.h
Now this looks like there was this NxOgre::CompoundShape class, since it's even mentioned in the source code documentation. But I'm too blind to find it.... can someone please show me where I didn't look ?
Thanks,
Amnu
I was just trying to get an actor with several distinct shapes to work but I stumbled upon one little problem: when pushing the shapes into an NxOgre::Array<NxOgre::Shape*> I need to position them in some way or they will overlap. Now how would I do this since there is nothing like a setPosition() method on NxOgre::Shape.
I searched the forum and found this topic dealing with multi shaped actors. That's exactly what I want and I was really glad ... until I saw there is no NxOgre::CompoundShape class anymore - at least not in the version I compiled. I grepped the whole sdk include directory but I only got one hit in NxOgreCommon.h
enum ShapeFlags
{
ShapeFlags_Visualisation = (1<<3), //!< \brief Allow a visualation of this shape in the VisualDebugger.
ShapeFlags_NoCollision = (1<<4), //!< \brief Use only with Compound Shapes, ...
Now this looks like there was this NxOgre::CompoundShape class, since it's even mentioned in the source code documentation. But I'm too blind to find it.... can someone please show me where I didn't look ?
Thanks,
Amnu