createBody is showing but always at Vector3(0,0,0)

Red15

19-10-2008 16:23:43

Following code :

mWorld = new NxOgre::World("timecontroller: ogre");
mScene = mWorld->createScene("PhysicalWorld","renderer:ogre, controller: accumulator, gravity: yes, floor: yes");

NxOgre::Actor *mBouncer;

mBouncer = mScene->createBody("Cube01;cube.1m.mesh", new NxOgre::Cube(1.0), Ogre::Vector3(3,3,3), "mass: 10");


It is always rendering the cube at position 0.0.0 and it doesnt seem to be dynamic.

Also I'm a bit confused about the whole Floor parameter in the Scene, does it create a floor automatically then, but invisible ?

On a slightly other note :
What exactly does addShape on an Actor do ? Would all the shapes be 'linked' to each other and rotate / translate / collide as if they were one object ?

Versions used:
NxOgre 1.0.20 Bleeding Edge started. Working with
- PhysX => 2.8.1 (281)
- Ogre => 1.6.0 (Shoggoth)
- Hardware => Probably
- Platform => Windows (Debug)

betajaen

19-10-2008 16:27:41

It's "time-controller: ogre", not "timecontroller: ogre"

Yes, floors are invisible.

No, shapes define what the actor "physically" is. Is it cubed shape, roundish, a terrain, so on.

Red15

19-10-2008 16:43:27

It's "time-controller: ogre", not "timecontroller: ogre"

Cake.cpp in svn shows @75 : mWorld = new World("timecontroller: ogre");


No, shapes define what the actor "physically" is. Is it cubed shape, roundish, a terrain, so on.

Ok thanks ! You saved my day (although you also ruined it by bad examples in SVN :) )

betajaen

19-10-2008 16:47:02

I wouldn't pay to much attention to Cake that much, he tends to lie - a lot. Last time he told me he was the Queen of Spain.

Red15

19-10-2008 17:16:01

I wouldn't pay to much attention to Cake that much, he tends to lie - a lot. Last time he told me he was the Queen of Spain.

Omg the Cake is a lie !