Collider:setUserData

Associates a custom value with the Collider.

Collider:setUserData(data)

Arguments

NameTypeDescription
data*The custom value to associate with the Collider.

Returns

Nothing

Notes

User data can be useful to identify the Collider in callbacks.

See also