TouchingChildren

class TouchingChildren(val baseTest: Touching) : Touching

Touching test which also checks the actor's children.

baseTest could be a simple implementation of Touching, such as WithinBounds or TouchingPixel, but it could also be TouchingChildren if we want to test the grandchildren too. However, if you want to test all descendants, then use TouchingDescendants

Constructors

Link copied to clipboard
constructor(baseTest: Touching)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun touching(actor: Actor, localPoint: Vector2): Boolean