PhysX with PLSM2?

wolfmanfx

14-06-2006 21:02:37

I want to use PhysX with Plsm2 as collsion detecion but have i use a floor? and what is with the gravity? When i turn it on all my physik bodys will through ยด....

Is there a way to make bodies that a are static or make bodies the have no gravity but the react on force... :?:

betajaen

14-06-2006 21:45:30

PLSM2 is terrain right?

Most likely you'll have to get the heightmap and create a static mesh by hand. Or if you wish, in the CVS demo there is an heightfield class based using an image as heightmap which you could adapt.

Both yes to those answers, consult the 20 odd tutorials or read the first few chapters of the book. Or use intelisense :wink:

wolfmanfx

15-06-2006 09:57:04

CVS is not working for me it say unkown host i have tried nxogre.sourceforge.net and cvs.sourceforge.net with pserver if try ext it ask me for a pass i leave it blank and dont get it :(

wolfmanfx

15-06-2006 10:17:18

cvs -d:pserver:anonymous@nxogre.cvs.sourceforge.net:/cvsroot/nxogre login

thats the url :) now i will try heightmap stuff :)

wolfmanfx

15-06-2006 10:21:10

// heightFieldShape
// A shape for heightmaps.
class _nxOgreExport heightfieldShape : public shape {
public:

heightfieldShape(Ogre::String _filename);
heightfieldShape(float _height[], unsigned int _size, unsigned int _width, unsigned int _depth);

NxTriangleMeshShapeDesc mShapeDesc;

static shape* _NxScene_create(TiXmlElement *_shapedef, scene *_scene);
};


is this the class u mean? What is if my heightmap is scale to be bigger than the heightmap picture?

betajaen

15-06-2006 12:38:09

Thats him.

I'm not sure, mostly likely you'll have to modify it.