{{newin|[[0.9.1]]|091|type=method}}
Associates a Lua value with the Body.

To delete the reference, explicitly pass nil.

{{notice|Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash.}}
== Function ==
=== Synopsis ===
<source lang="lua">
Body:setUserData( value )
</source>
=== Arguments ===
{{param|any|value|The Lua value to associate with the Body.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Body]]
* [[Body:getUserData]]
[[Category:Functions]]
{{#set:Description=Associates a Lua value with the Body.}}
== Other Languages ==
{{i18n|Body:setUserData}}