Question about shapes and actors

Amnuriak

08-10-2009 10:08:34

Hi there,

I'm trying to use NxOgre in a static library project of mine. I've compiled NxOgre for debug mode and it worked pretty smoothly - nice job here!

How do I access an actor's shape(s) ? There is no NxOgre::Actor::getShape() or NxOgre::Functions::RigidBodyFunctions::getShapeFromActor() so how do I do this ? There has to be some way to access an actor's shape in order to access its friction values but I can't find it - or is NxOgre's approach to actors and their shapes completely different from the way it is done with NxActors and their shapes ?

Thanks in advance
Amnu

Edit:
Removed first question, found possible solution.

spacegaier

11-10-2009 22:16:36

Okay, seems as if there is no getShapes() function currently. Either betajaen adds one (or explains why this is not needed, if it was left out for purpose) or you can add one yourself. The NxOgre::Actor class has a member called mShapes. Just write you a getter method for it and recompile BloodyMess again and you should be on the track :) .

betajaen

11-10-2009 22:25:48

I forgot to put it in.

I've added a getShapes function for Detritus that returns an iterator, and I can put one in next time I have the BloodyMess solution open.

Amnuriak

12-10-2009 08:09:01

Great, thanks :-)