See I bet you lot sit there looking at my threads thinking 'it's all so easy for him|' well today I have to announce that I too spend ages chasing weird bugs, things which all logic dictates should work fine but for some reason which eludes me just won't play ball.
So here is an example which I have been chasing most of the day with absolutely no joy; you may have noticed a certain 'Mech' thread, well I am about to embark on a major redesign of the walking mechanics for 'Moose' as I wasn't happy with the way it worked, or more to the point 'appeared' to work as a lot of it was more smoke and mirrors than proper walking around.
Before doing so I set out to fix all the little niggly problems that I knew were there in the code, one of these was the propensity for the feet to suddenly sink into the terrain or entity that the mech was walking across.
See pics 1 & 2 , here we can see Moose standing on the terrain quite normally, one pic the terrain is sloped, the other flat. Notice the feet are angled with the slope and all is well.
Now compare with pic 3, here Moose is standing on an entity, big lump of concrete in this case, and as you can see the heel is on the entity but the toes are sunk into it.
Now the puzzle for me is that it is the same Lua function being called to detect the heel and toe contact points regardless of whether it is on terrain or an entity. Why it works fine for terrain but only works for the heel on an entity is bugging me (pun intended) no end, I've been scratching my head so much over this my cat tried to lend me his flea collar.
Been there, done that, got all the T-Shirts!