Skip to content

Current CPU render code relies on implicit behavior #623

Closed
@adroitwhiz

Description

@adroitwhiz

Expected Behavior

The isTouchingDrawables and isTouchingColor functions should update the target drawable's silhouette and inverse matrix, as they require them to be up-to-date in the first place.

Actual Behavior

Those functions currently rely on the _touchingBounds function updating those properties on the target drawable. _touchingBounds is called by _candidatesTouching which in turn is called by isTouchingDrawables and isTouchingColor.

Since _touchingBounds doesn't require those properties to be up-to-date itself, it could be changed in the future to stop updating them, which would break "touching color" and "touching sprite" as they rely on it doing so.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions