Game Development Community

Player stops dead on any obstacle

by John Doppler Schiff · in Torque Game Engine · 07/28/2006 (9:24 am) · 10 replies

Hi guys,

I'm having trouble with my player; the tiniest bump (1/32 Torque units) stops him dead in his tracks, so he has to jump over the threshholds of buildings.

Neither the player nor the interiors are scaled. MaxStepHeight is set to the default of 1.0, but increasing the value doesn't seem to help: I've hiked up the value until he leaps over the entire building, but he still can't seem to step up. Entrances are more than wide enough and tall enough to accomodate the player.

I'm currently using figures from the Soldier Pack.

Any suggestions? I'm stuck -- in more ways than one!

TIA,

-- JohnDopp

#1
07/28/2006 (9:30 am)
I have seen the same issue. It looks like a bug with the interior collisions and the stepheight. I also have tested it with a non scaled interior and player. Would love to find a solution.
#2
07/28/2006 (1:08 pm)
Well, I've got two workarounds, but neither is ideal.

Workaround #1: Use multiple stairs. A single step trips up the player, but a series of them seems to work fine in my test app. Go figure!

Workaround #2: Use a ramp. I added a small ramp to the building entrance with the same rise and run (e.g., 4 Quark units up, 4 Quark units long), and that seems to work okay, although the player has a tendency to bounce and slow down when he hits the ramp at high speed. (For aesthetics, you can use the interior transparency fix to make the ramps invisible, so it looks just like the original design.)

That's as far as I've gotten. If anyone digs up a fix or an alternate solution, I'd love to hear about it.

-- JohnDopp
#3
07/29/2006 (2:02 am)
Workaround #3: Don't use the soldier pack ;)
#4
07/29/2006 (3:15 am)
I use the soldier pack as a base and this works fine.
#5
07/29/2006 (6:15 am)
In my JKA mapping days, all we did was stick an invisible angled brush over the stairs so the walking up them would be smooth. Should work here, too.
#6
07/29/2006 (8:17 am)
@Tim: Is there a problem with the soldier pack?

@Chris: Right-o... I'm using small ramps to smooth out the edges, and that seems to do the trick.
#7
07/29/2006 (10:48 am)
Its not the soldier pack. I use a custom player model and I see the same issue.
#8
08/22/2009 (1:52 pm)
Has anyone solved this issue? It is extremely annoying to not have stairs
#9
08/22/2009 (2:20 pm)
I found the reason it does this and it's a bug in player.cc I think. If you do a %player.setScale(x x x) larger than 1 when you create the player then the player cant step up one inch on a Dif building. If you dont scale the character it all works fine. Here is the code and I dont see where it's adding in the scale factor. Is this a bug?

F32 step = stepHeight - pos->z;
if (stepHeight > pos->z && step < *maxStep) {
// Go ahead and step
pos->z = stepHeight;
*maxStep -= step;
return true;
}
#10
08/22/2012 (8:50 am)
Bump:

Does anybody knows if this is solved, because I am experiencing the same problem with TStatics and AI players that are scaled up. a scale from 1 and below doesn't stop the ai.

Thanks anyway.

Edit: I'm using T3D 1.1final with 1.2 patch.