Actor won't move

Rusty06

21-06-2008 09:55:20

I made a charicter. it's 1 unit wide, 1 unit long and 3 units high. It has a lovely triangleshapemesh world to play in, and some convexshape cars to drive.

One problem. Mr Charicter doesn't want to come out and play.

The flippin charicter just sits there in the air, and won't fall to the floor or move. This is quite an intermitant problem but argh, its driving me mad! i can't release my 99% finished game if the player sometimes doesn't spawn properly. i can look arround with my player, etc, and i can manually move the player arround (setposition) but it still doesnt actually move with gravity or move arround with i use the control keys (wasd). Like i said, it's intermittant. sometimes if you spawn the charicter a few times, the second or thrid charicter works fine, and does everything i want..

Any suggestions?

betajaen

21-06-2008 10:09:02

I've heard of this problem before and since nobody has complained since, I thought it was fixed.

This thread is where it was discovered and it was found out to be PhysX ignoring the movement vector. There may be a fix or workaround posted in that thread. If not you could try experimenting a few things; force the actor to be awake, nudge the character slightly to the left to trigger something or the worst case scenario keep spawning and deleting characters until you get a proper one.

The source code of the Character system is now public so you may be able to trace the error further and even provide a fix.

Rusty06

21-06-2008 10:35:14

2. It appears as if the order of creation of the obstacle and the character affects the problem too. Back in Release mode, if I created the character after the other two actors, it would get stuck. But if I created the character first, it'd work just fine.
- putToSleep() then wakeUp() before the coll mesh was loaded.
I think ill try these. Failing that, ill put some kind of stayawake function in the main loop.

Can't do this till sunday. Ill let you know how i get on.

Thanks betajaen! keep up the epic work!

jchmack

12-08-2008 21:02:37

I have been having similar problems forever now. Did anyone ever get this fixed? Or find a suitable workaround?