Touch

value class Touch(source)

One touch between two things, a and b. For a sensor's touch, a is the sensor.

toString gives both sides, for example Touch(TouchSide(RigidBody(3)), TouchSide(SOLIDS)).

Properties

Link copied to clipboard

The first side.

Link copied to clipboard

The second side.

Functions

Link copied to clipboard

Returns true if side is either side of this touch.

Link copied to clipboard
open override fun toString(): String