Jump to content

How to create ladders (with Matter)?


jorbascrumps
 Share

Recommended Posts

Hi all,

I'm looking for some advice/ pointers on how to best go about creating ladders with Matter physics. At the moment, I'm adding a sensor for each ladder tile and then setting a flag on collision. If the player has this flag set and presses up (or down), I apply a force to the body in the desired direction. It doesn't feel like a very robust solution and the player tends to slide around. Is there a better way to handle this?

Thanks

Link to comment
Share on other sites

The biggest mistake I made was applying force instead of setting velocity. Once I did that, the sliding stopped. It still doesn't feel quite right when I play test it, but I'll tweak it.

The overlap detection you mentioned, is that available in Matter or just Arcade?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...