Search found 2 matches

by autumnDev
Sat May 11, 2024 6:27 pm
Forum: Support and Development
Topic: [Solved] Rectangle collision resolution only works on one axis
Replies: 3
Views: 403

Re: Rectangle collision resolution only works on one axis

Once the shapes are interpenetrating, both wasHorizontalAligned and wasVerticalAligned are going to be true, because they only check for interpenetration in one axis, and the shapes are known to be interpenetrating anyway, and the interpenetration affects both axes, so both checks will be true. Thi...
by autumnDev
Thu May 09, 2024 1:51 am
Forum: Support and Development
Topic: [Solved] Rectangle collision resolution only works on one axis
Replies: 3
Views: 403

[Solved] Rectangle collision resolution only works on one axis

Hello, I am creating the bones of a 2D top-down game, and am trying to make my 'basic' code something I can reuse for other projects. I originally based my code off the Sheepolution tutorial here https://sheepolution.com/learn/book/23 . However, I encountered some strange behavior where colliding fr...