{{newin|[[0.9.2]]|092|type=method}}
Associates a Lua value with the Joint.

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">
Joint:setUserData( value )
</source>
=== Arguments ===
{{param|any|value|The Lua value to associate with the Joint.}}
=== Returns ===
Nothing.
== See Also ==
* [[parent::Joint]]
* [[Joint:getUserData]]
[[Category:Functions]]
{{#set:Description=Associates a Lua value with the Joint.}}
== Other Languages ==
{{i18n|Joint:setUserData}}