filter

fun FixtureDef.filter(filter: Filter): Filter

Utility extension method for setting up of FixtureDef.filter. Allows to copy an existing Filter instance to avoid copying each property manually.

Return

FixtureDef.filter of this FixtureDef instance.

Parameters

filter

its properties will be copied.

See also

Filter

inline fun FixtureDef.filter(init: Filter.() -> Unit)

Inlined utility extension method for setting up of FixtureDef.filter. Exposes Filter properties under this.

Parameters

init

inlined. Uses FixtureDef.filter as this.