jorbascrumps Posted October 2, 2018 Share Posted October 2, 2018 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 More sharing options...
kurhlaa Posted October 4, 2018 Share Posted October 4, 2018 Is there a gravity setting in a Matter? Try to disable it for a player when it is on a ladder. Then it shouldn't slowly move down. Also you don't need sensors, since you can detect overlaps with needed tiles directly Link to comment Share on other sites More sharing options...
jorbascrumps Posted October 4, 2018 Author Share Posted October 4, 2018 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 More sharing options...
kurhlaa Posted October 4, 2018 Share Posted October 4, 2018 Unfortunately I use Arcade only. From examples I see now Matter is a way different from Arcade, we should wait for people with more experience/knowledge Link to comment Share on other sites More sharing options...
jorbascrumps Posted October 4, 2018 Author Share Posted October 4, 2018 Thanks for offering to help, I appreciate it. Honestly, I think this can be considered resolved. I'd still love to hear anyone else's approach, though. Link to comment Share on other sites More sharing options...
Recommended Posts