Moondust-Project icon indicating copy to clipboard operation
Moondust-Project copied to clipboard

[Engine] Solid NPC`s stacking issue

Open Alucard648 opened this issue 8 years ago • 3 comments

Sometimes, solid NPC`s, like SMBX tank pieces, fall trough each other. Test level: https://yadi.sk/d/e_4pdOQfotq32 This issue is quite volatile. Several runs of the test level maybe needed to reproduce this bug.

Alucard648 avatar Feb 15 '16 21:02 Alucard648

Still reproducible with latest laboratory build.

Alucard648 avatar Aug 30 '16 18:08 Alucard648

That I wasn't fixed yet because wasn't completely debugged speed-adding stack which requires a very interesting trick to correctly process physics:

  • Instead instant applying of the speeds, collect pointers to items which must be applied
  • Apply bottom speeds with strict order by height (from bottom to top), because lower items takes speed under, but upper items takes speed from bottom items, etc. Wired result may appear

Wohlstand avatar Aug 30 '16 19:08 Wohlstand

Also, tank caterpillar must don't turn on impact blocks and other NPC's, and must don't turn in non-movable mode

Wohlstand avatar Aug 31 '16 08:08 Wohlstand