<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/PhysicsIsElement?action=history&amp;feed=atom</id>
	<title>PhysicsIsElement - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/PhysicsIsElement?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PhysicsIsElement&amp;action=history"/>
	<updated>2026-04-04T12:02:51Z</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=PhysicsIsElement&amp;diff=65214&amp;oldid=prev</id>
		<title>CrosRoad95: Created page with &quot;__NOTOC__  {{Client function}} Returns whatever physics-element exists  ==Syntax==  &lt;syntaxhighlight lang=&quot;lua&quot;&gt; bool physicsIsElement(physics-element thePhysicsElement)...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=PhysicsIsElement&amp;diff=65214&amp;oldid=prev"/>
		<updated>2020-02-19T19:16:14Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__  {{Client function}} Returns whatever physics-element exists  ==Syntax==  &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt; bool physicsIsElement(physics-element thePhysicsElement)...&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;
Returns whatever physics-element exists&lt;br /&gt;
&lt;br /&gt;
==Syntax== &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
bool physicsIsElement(physics-element thePhysicsElement)             &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Required Arguments=== &lt;br /&gt;
*'''thePhysicsElement:''' physics element: shape, constraint, rigid body, static collision&lt;br /&gt;
&lt;br /&gt;
===Returns===&lt;br /&gt;
True if physics element exists&lt;br /&gt;
&lt;br /&gt;
==Example==&lt;br /&gt;
&lt;br /&gt;
if shape got destroyed, static collisions, rigid body and its constraints will destroyed too, this example prove it.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local shape = physicsCreateShape(physics, &amp;quot;box&amp;quot;, 1)&lt;br /&gt;
local rb = physicsCreateRigidBody(shape)&lt;br /&gt;
local col = physicsCreateStaticCollision(shape)&lt;br /&gt;
local const = physicsCreateConstraint(&amp;quot;pointtopoint&amp;quot;, rb, 0,0,0)&lt;br /&gt;
iprint(&amp;quot;isElement before&amp;quot;, physicsIsElement(shape), physicsIsElement(rb), physicsIsElement(col), physicsIsElement(const)) -- true, true, true, true&lt;br /&gt;
physicsDestroy(shape)&lt;br /&gt;
iprint(&amp;quot;isElement after&amp;quot;, physicsIsElement(shape), physicsIsElement(rb), physicsIsElement(col), physicsIsElement(const)) -- false, false, false ,false&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>