findInteractableEntities

open override fun findInteractableEntities(screenCoordinate: ScreenCoordinate, validator: (predicate: ITouchInteractable) -> Boolean?): List<ITouchInteractable>

Returns an entity (if present and in draggable state) that can possibly be dragged.

Parameters

screenCoordinate

Coordinate on the screen for which to find the entity to possibly be dragged.

validator

Predicate to validate the entity to be dragged. Returns true if an entity can be a hit, or false otherwise (in which case it is ignored).