In terms of a simple 2D platformer, I was wondering if, over the years, a right way has emerged as far as determining whether or not a strolling character has reached the edge of the platform it is walking on.
My searches haven’t produced an answer for this question and there does not seem to be a consensus about what the best way is, but I would like to believe that there is a best way considering the classic nature of the 2D platformer.
Working with Godot 3.0.6 Mono, my current idea is two trace two rays from either side of a character’s collision box downward, where a difference in the length (assuming flat platforms) between those two rays before collision means the character is partially over an edge. However, I feel like this can get intense if lot’s of characters are being managed every frame. What are some other ways of approaching this? Any other suggestions are appreciated.
- Tri-Center senior Tillie Heim finds more than one way to better opponents
- Report: Bill Belichick chastised Rob Gronkowski about using TB12 method
- Two Barnegat players shoot match low to edge Jackson Liberty
- Carmella Surpasses Edge To Set A New WWE Record
- Hearts move is dream come true for Glenavon ace Burns
- New Zealand vs Australia: T20 tri-series final, cricket live scores, blog
- New Zealand vs Australia: T20 tri-series final, cricket live scores, blog, highlights
- Report: Browns tried to trade for Robert Quinn
- Report: Giants trying to sign OT Nate Solder
- Barkley’s agent denies report about trying to avoid Browns