New to KinematicController

SappYoda

07-08-2009 16:48:28

I've been trying to use KinematicController Class without success as I'm new to C++.
I don't understand why the Class constructor is protected.

Can you provide me an simple example code of how to create a KinematicController please?

Thank You :)

SappYoda

07-08-2009 19:57:27

I've tried creating the kinematic controller this way:

mKinematicPlayer = mScene->createKinematicController(NxOgre::Real3(1, 1, 1),NxOgre::Real3(0, 0, 0));

But the visual debugger doesn't show any box at 0,0,0.

And when doing

mKinematicPlayer->move(NxOgre::Real3(10.0f,0.0f,0.0f));

It stops execution and shows me that inside the move function of the KinematicController class at this line

if (deltaM2 != 0)
mActor->moveGlobalPosition(NxVec3(mPosition.x, mPosition.y, mPosition.z));


mActor is NULL. So it launches an exception.

The compiler does not show any errors.

Is the KinematicController class not functional? or I am doing it wrong?

Thank You :)

AWHDRi

26-08-2009 16:29:05

same question here

cherry12345

27-08-2009 14:56:27

I have the same problem. Can anyone help us?

mimoucas

30-08-2009 15:19:55

Hi, i am a newbie too; so i apologise in advance for all the BS i might post; moreover i'm not fluent in english.

I'm afraid that the Kinematic controller is NOT implemented in the 1.5.5 nxogre release so far.

Personnaly I solved this problem by acceding directly to the PhysX SDK with a pointer from NxOgre to the PhysX SDK
i.e.:
NxOgre::World mWorld->getPhysXSDK();

Many Thanks to an enlightening post from Noodlesinmyback: that saved my life and gave me the opportunity to go ahead in implementing a lot of PhysX features (not only a controllermanager) in Ogre:

viewtopic.php?f=6&t=8589&p=49942&hilit=NxQueryReportResult#p49942

I recommend the PhysX SDK documentation and above all one should compile and test the examples in (SDK Path)\Samples

best wishes

betajaen

30-08-2009 15:43:48

I'm afraid that the Kinematic controller is NOT implemented in the 1.5.5 nxogre release so far.

The KinematicController class is based mostly off the NxCharacterController source code from PhysX 2.8.1, it hasn't been tested thus the problems in this thread. You can mix and match PhysX code like you said in your post, and can even copy and paste in the PhysX CharacterController source in your application (legal issues aside) and it should run.

But to clear up any confusions by any future readers of this thread. The KinematicController IS implemented, but hasn't been tested at all. In conclusion you should use that, write your own using a dynamic or kinematic actor.

mimoucas

30-08-2009 16:04:06

Ok it is implemented but doesn't work, it's different but the matter is that it DOESN'T WORK AT ALL and that must be said
to avoid that people lose a lot of time trying to use a fucked functionality whereas it's much easier to use PhysX directly.

betajaen

30-08-2009 16:55:38

What part of "It is not tested at all" do you not understand?

mimoucas

30-08-2009 19:30:03

What part of "It is not tested at all" do you not understand?

Sorry i missed the part where you specified who "has not tested at all" ...
I have tested, i have found that it was bugged big time and the 4 posters before me have asked help since the 4 of august without answer.
Many posters have asked for help after TESTING that fucking controller in many threads for many months (years ?) and i have never seen a post where it is said that it was working since the 0.9 release.
So it is tested and prooved fucked, i have not time to debug that piece of crap and as i easily found an other way to do it, i don't care much in fact.
Have a good day.

betajaen

30-08-2009 19:53:55

Obviously you must assume; For such a free project that it gives you the right to bitch, and moan for something you feel that you are owed to. I forget who pays out his pocket monthly for fees to run this website, spends his precious spare time on something he doesn't actually get any benefit from and has to put up with posts like this? Oh wait that's me.

Something has gotten up your kickers up a twist - So don't take it out me, NxOgre or anyone else in this forum. You have problems with it? Then you take your frustration on something else, or even better come up with a fix.

Because certainty swearing at me will not get your problems sorted.

Just leave and don't come back.

spacegaier

30-08-2009 20:05:09

Wow, I almost missed this big party here ;) ...

Okay, mimoucas: As betajaen pointed out, everything that is done here (includes also Ogre Core) is done by volunteers in their free time. Therefore, there is absolutely no need to moan for anything that does not work in the way and tone you did. Telling that something needs to be fixed is definetly okay and welcomed, but the tone makes the music as we say in german.

Instead of calling everything here "fucked" or similar unappropriated words, it would have been better to try to make the best out of the things provided here or even help to improve them by e.g. solving the issue. Your way of "dealing" with it is absolutely wrong and even let's us assume that you are up for a confrontation (at least that is what you got now).

So there are two ways in my eyes: Apologize for the things said and done, so that betajaen will perhaps forget about it - or leave! No way between it, sorry (you should decide soon as a banning request is already sent out).

Either way, your behavior was unacceptable and offending, think about it!

Regards
spacegaier.

PS: Most hints and tips apply also for your daily life. Being a bit more polite and respectful would make dealing with you a lot easier! Kepp that in mind...

PPS: I wanted to lock this thread in order to calm down the waves a bit, but that would have been unfair to the original thread opener who (in a nice, modest and polite tone) wanted to discuss a topic.