<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PhysicsCreateConstraint?action=history&amp;feed=atom</id>
	<title>PhysicsCreateConstraint - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PhysicsCreateConstraint?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PhysicsCreateConstraint&amp;action=history"/>
	<updated>2026-04-05T16:33:01Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=PhysicsCreateConstraint&amp;diff=65203&amp;oldid=prev</id>
		<title>CrosRoad95: Created page with &quot;__NOTOC__  {{Client function}} Creates connection between rigid body and other rigid body or specified position.  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; physics-constraint p...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PhysicsCreateConstraint&amp;diff=65203&amp;oldid=prev"/>
		<updated>2020-02-19T15:10:55Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} Creates connection between rigid body and other rigid body or specified position.  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; physics-constraint p...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__ &lt;br /&gt;
{{Client function}}&lt;br /&gt;
Creates connection between rigid body and other rigid body or specified position.&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
physics-constraint physicsCreateConstraint(constraint-type theConstraintType [, disableCollisionsBetweenLinkedBodies = true], physics-rigid-body rigidBodyA [, physics-rigid-body rigidBodyB], mixed )             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''theConstraintType:''' &amp;quot;pointtopoint&amp;quot;, &amp;quot;hidge&amp;quot;, &amp;quot;fixed&amp;quot;, &amp;quot;slider&amp;quot;, see [[Physics constraints]]&lt;br /&gt;
*'''disableCollisionsBetweenLinkedBodies:''' disable collision between two rigid bodies, useful when rigids are close to each other.&lt;br /&gt;
*'''rigidBodyA:''' first rigid body,&lt;br /&gt;
*'''rigidBodyB:''' second rigid body, optional, can be replaced with position in some cases.&lt;br /&gt;
*'''mixed:''' depends on constraint type&lt;br /&gt;
===Returns===&lt;br /&gt;
*'''physics''' world used for simulation.&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
Spawns capsule and attach invisible line to the rigid body.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local capsule = physicsCreateShape(physics, &amp;quot;capsule&amp;quot;, 0.5, 1.2)&lt;br /&gt;
local capsulerb = physicsCreateRigidBody(capsule );&lt;br /&gt;
physicsCreateConstraint(&amp;quot;pointtopoint&amp;quot;, capsulerb, 0,0,0)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See Also==&lt;br /&gt;
&lt;br /&gt;
{{Client_physics_functions}}&lt;/div&gt;</summary>
		<author><name>CrosRoad95</name></author>
	</entry>
</feed>