opentomb / OpenTomb

An open-source Tomb Raider 1-5 engine remake
http://opentomb.github.io/
GNU Lesser General Public License v3.0
1.39k stars 145 forks source link

Floor slant makes Lara move #257

Open Lwmte opened 9 years ago

Lwmte commented 9 years ago

This is a very old bug which was introduced by last collision refactoring. It needs to be fixed, as it's probably directly related to the problem described by @Gh0stblade in #28:

the root cause to the speed/movement issues is caused by the floor slants...

And generally it's just annoying to have her slide in almost any possible situation, like she's on ice.

The problem may lie in "fixing" body parts position. Engine thinks it should push out some body parts falsely marked as "penetrating".

vvs- commented 9 years ago

I always blamed Bullet for that.

Lwmte commented 9 years ago

Bullet never pushes Lara anywhere until she's dynamic (i.e. ragdoll). Everything you see in her "normal" state is caused by faulty code of OpenTomb itself.

vvs- commented 9 years ago

She slides even when she hangs idle on a ledge. And the most interesting is that the direction (left or right) depends on whether you used jump and then action or just action and up.

Gh0stBlade commented 9 years ago

Also, when you die on a slope, she slides completely down it. I believe that's also the same bug,

Joey79100 commented 9 years ago

It also happens when she lands (animation 24) or when she picks up an item (first big medipack of TR3 for example).

vvs- commented 8 years ago

Crouching makes Lara to slide very fast, too.

vvs- commented 8 years ago

Standing on a narrow edge creates high frequency oscillation. E.g. 63036,55033,1255,328,0,0 in Palace Midas.

vvs- commented 7 years ago

Another funny effect of this bug is when you start turning Lara clockwise she will eventually slide backwards on a flat horizontal surface if there is a certain mesh near her: screen_00000

vvs- commented 7 years ago

Much better now. There is no collision sliding except when she picks-up an item. That's visible in Jungle first secret if she's trying to pick-up items while still in crouch state.