nxogre.org/what

radsun

26-05-2008 06:28:37

On http://www.nxogre.org/what i found this code:
World* mWorld = new World("time-controller: ogre");
Scene* mScene = mWorld->createScene("Eddie", "gravity: yes, floor: yes, renderer: ogre");
Actor* mActor = mScene->createActor("Atlas", new Sphere(0.5), Vector3(3, 10, -2), "mass: 10");

This it for what version of NxOgre?

I have 0.9 and the create scene looks that:
Scene* mScene = mWorld->createScene("Eddie", mSceneMgr, "gravity: yes, floor: yes, renderer: ogre");

Next ther is a createActor but there is error:
.\val.cpp(332) : error C2664: 'NxOgre::Sphere::Sphere(const NxOgre::Sphere &)' : cannot convert parameter 1 from 'double' to 'const NxOgre::Sphere &'
Reason: cannot convert from 'double' to 'const NxOgre::Sphere'

betajaen

26-05-2008 11:04:55

All code posted on NxOgre.org is for 1.0 (Bleeding), 0.9 code is similar and may work. One of the biggest changes (apart from the render system) is that I dropped the "Shape" suffix from the Shape classes "CubeShape -> Cube", "SphereShape -> Sphere".

So you need a SphereShape.

Also; you don't need a time-controller or a renderer in 0.9.