Skip to content

CollisionFrontEnd #3430

Open
Open
@Geokureli

Description

@Geokureli

PR, here: #3431

Spinoff from #3418

FlxObject.separate is weirdly laid out and could use a redo.

Operations like computeOverlapX should just compute the overlap, and not set touching flags. We can refactor this system completely and avoid breaking backwards compatibility if we move all of this to FlxG.collision.

I think FlxG.collision.separate should:

  1. Check whether the swept hulls overlap (once, not per axis)
  2. Compute the overlap of each axis
  3. Separate on the smaller axis before the other, setting touching flags when separating, not when computing overlap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions