Collider:getUserData

Returns the user data associated with the Collider.

data = Collider:getUserData()

Arguments

None

Returns

NameTypeDescription
data*The custom value associated with the Collider.

Notes

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

See also