Ridhan
22-11-2006 17:40:09
Hello
I was was lookin at the source code of the character controller you wrote, but I didn't understand much of it, so I wanted to ask you how much is it fully implemented for using, I mean, what can I really do with actual state of this controller.
There are some bugs that I really love that there were fixed, like the caracter sinking when it's standing still for example
Thanks in advance for the answer
DaCracker
22-11-2006 18:18:46
It's more likely that your stepping value is wrong rather than
it's a bug in NxOgre.
Ridhan
22-11-2006 21:37:23
I've been changing the setStep value, but it seems to have no effect in my character. The character doesn't sink when stepping on a cubeShape (it gets buried but a little) , as opposite when it's on a meshShape.
Changing the shape for setShapeAsBox, it only makes that the character falls in both meshShape and cubeShape
Is there any solution for this please
betajaen
22-11-2006 21:56:21
Which PhysX version are you using?
I think there is a problem with meshShapes and Character Controllers with ~2.5.
Ridhan
22-11-2006 22:01:56
Currently I'm using 2.6.2
betajaen
22-11-2006 22:04:47
Odd.
How does the mesh in 606 fair?
Ridhan
22-11-2006 22:41:49
In fact, i've been modifying that 606 tutorial trying to make it work properly.
Without any changes, the character begins to sink into the ground, until it reaches the default floor of the tutorials, and stop.
I dont know, maybe i have some intallation issues, even the other tutorials work fine though
betajaen
22-11-2006 22:59:40
Well at this point it is a PhysX issue. See if anyone at Ageia's forums has the same problem as this.
But I must admit it, I've experienced it too, from 2.5.0, but it was fixed in 2.6.0
DieHard
23-11-2006 00:54:49
I'll be getting into character with physics, raycast, and artificial intelligence. Before I dive into the my source code, can NxOgre do it? Is it implemented already?
Here is some kewl demo I found in the Ageia SDK:
SampleCharacterController.exe
SampleRaycastCar.exe
SampleAISensor.exe
Thanks!
Ridhan
24-11-2006 15:42:50
I managed to make it work
I've changed the skinWidth to a higher value to make it work properly
I've got another question though, how do i set the speed of my controller?
Kevin_P
02-12-2006 18:42:32
I'm having the same issue in my app with my character falling through whatever he is on if i stand still for more than 2 seconds. Its like i'm in quicksand and long as i run around real fast i'm ok. But when i stop i fall through after about 2-3 seconds. Anyways, from what i gather the skinwidth is hard coded in nxOgre to .0025. What is a recommended way to change this during runtime and/or can this be done without recompiling NxOgre?
note: the character controller also falls through the meshfloor in demo 606 (no changes to the code), but stops at the main scene floor.
Thanks!
betajaen
02-12-2006 19:16:43
You can adjust the skin width when you want to, just:
mWorld->mPhysicsSDK->setParameter(NX_SKIN_WIDTH,0.1);
Double check NX_SKIN_WIDTH is correct, as I can't remember right now. Best to set it just after creating your scene to make sure it's applied to all actors.
betajaen
02-12-2006 20:32:40
Okay, if it helps. Da Cracker PM'ed me with the bug, curiously I have the bug too. It's a little weird, sometimes you fall into the black and some times it works.
Altering the skin width of the character does not work.
So either the problem is with the mesh (somehow, but I doubt it), or a bug with PhysX which we all have.
[Edit]
Actually, tracing it. It's a bug with the gravity code I implemented, it's moving a bit to fast for the collision code in PhysX to keep up.
I'm rewriting it as I type this. (With my feet).
Kevin_P
02-12-2006 21:04:34
thanks for the info, hopefully we'll get it figured out.
In the meantime I will alert Dr. Physics that Spheros is under siege again. I will notify him via a note in a bottle so that it doesn't sink
betajaen
02-12-2006 21:28:34
thanks for the info, hopefully we'll get it figured out.
In the meantime I will alert Dr. Physics that Spheros is under siege again. I will notify him via a note in a bottle so that it doesn't sink 
No need. The Shape Champions and Betajaen's Army sorted it all out.
http://get.nxogre.org/patches/2-Dec-2006/
Just replace them with the patched versions, recompile and recompile 606.
Changes:
- I've seemed to fixed the intense gravity problem.[/*:m]
- The character controller will not fall through the groundPlane. The character does jitter though when on it though, as it's constantly falling and being moved up (Collision code is my own, so what do you expect!). Anyway always a use a cubeShape if you want to stroll around on it - Much safer.[/*:m][/list:u]
betajaen
02-12-2006 23:13:21
When I was in college, I was able to move and control the mouse with my feet with the college computers. This allowed me two type with two hands and use my leg as a third "arm".
It gave a dirty mouse though.