[bloody mess]How to create a Character Controller

zillenjack

22-05-2009 03:58:49

I want to use the [bloody mess] to create a Character Controller like PhysX's SampleCharacterController.exe
My code is here
OGRE3DKinematicBody* box = mRenderSystem->createKinematicBody(new NxOgre::Box(1,1,1),NxOgre::Real3(10,1,200),"box.mesh");
when it is move
I am write this code:

NxOgre::Real3 pos = box->getGlobalPosition();
box->moveGlobalPosition(NxOgre::Real3(1,0,0)+pos);

But the box can not turn left and right when obstacles
can you show me some code?
Thank you!

wat2k

29-05-2009 21:46:03

I think you should use KinematicController.
But it still doesn't work in 1.5.4
(because of 2 comment in constructor ???

Real3 boxSize(size);
boxSize *= Real( 0.8 );
// mShape = NxOgre_New(Box)(boxSize);
// prototype->mShapes.insert(mShape);

create(prototype, mScene);
)

I've been trying to use this too. But no luck :cry: :cry: :cry: :cry:

betajaen

29-05-2009 21:50:57

You should using Bleeding if you want to use the Character Controller with no hassles, the one in Mess is a bit of a mess at the moment, it works but hasn't been tested, and some code fragments are missing

wat2k

29-05-2009 22:04:28

What a quick replay :shock: :shock: :shock: :shock:
Thanks very much. But does it work with that 2 comments. ( getposition fails because the num of shape is always 0)

And does compound volume work?

NxOgre is great , hope it stable soon. :D


edit: should I use [Bleeding] 1.0'22T5 (Unstable) or other stable version?

mcaden

02-06-2009 06:29:26

Umm...I thought CharacterController never made it to bleeding?