<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=R3d.Fixture%3AsetIsTrigger</id>
	<title>R3d.Fixture:setIsTrigger - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.gideros.rocks/index.php?action=history&amp;feed=atom&amp;title=R3d.Fixture%3AsetIsTrigger"/>
	<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=R3d.Fixture:setIsTrigger&amp;action=history"/>
	<updated>2026-11-17T21:04:52Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.gideros.rocks/index.php?title=R3d.Fixture:setIsTrigger&amp;diff=24948&amp;oldid=prev</id>
		<title>MoKaLux: Created page with &quot;__NOTOC__ &#039;&#039;&#039;Available since:&#039;&#039;&#039; Gideros 2019.10&lt;br/&gt; &#039;&#039;&#039;Class:&#039;&#039;&#039; R3d.Fixture&lt;br/&gt;  === Description === Sets a collider (fixture) as trigger. &lt;syntaxhighlight lang=&quot;lua&quot;&gt;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.gideros.rocks/index.php?title=R3d.Fixture:setIsTrigger&amp;diff=24948&amp;oldid=prev"/>
		<updated>2025-12-19T01:21:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;__NOTOC__ &amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2019.10&amp;lt;br/&amp;gt; &amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; &lt;a href=&quot;/index.php/R3d.Fixture&quot; title=&quot;R3d.Fixture&quot;&gt;R3d.Fixture&lt;/a&gt;&amp;lt;br/&amp;gt;  === Description === Sets a collider (fixture) as trigger. &amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;...&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;
&amp;#039;&amp;#039;&amp;#039;Available since:&amp;#039;&amp;#039;&amp;#039; Gideros 2019.10&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Class:&amp;#039;&amp;#039;&amp;#039; [[R3d.Fixture]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Sets a collider (fixture) as trigger.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
r3d.Fixture:setIsTrigger(trigger)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Triggers&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
It is possible to set a collider as being a trigger. You can do this if you do not want any collision with this collider but you are only interested in knowing when another collider enters or exit the volume of the collider.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;trigger&amp;#039;&amp;#039;&amp;#039;: (bool) whether the fixture is a trigger or not&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
-- r3d body&lt;br /&gt;
viewport.body = world:createBody(matrix)&lt;br /&gt;
viewport.body:setType(params.type)&lt;br /&gt;
viewport.body.id = &amp;quot;player1&amp;quot;&lt;br /&gt;
local shape1 = r3d.SphereShape.new(h/4)&lt;br /&gt;
local shape2 = r3d.SphereShape.new(h/4)&lt;br /&gt;
local t1, t2 = Matrix.new(), Matrix.new()&lt;br /&gt;
t1:setPosition(0, h/4/2, -d/2)&lt;br /&gt;
t2:setPosition(0, h/4/2, d/2)&lt;br /&gt;
local f1 = viewport.body:createFixture(shape1, t1, 1) -- shape, transform, mass&lt;br /&gt;
local f2 = viewport.body:createFixture(shape2, t2, 1) -- shape, transform, mass&lt;br /&gt;
&lt;br /&gt;
f2:setIsTrigger(true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{R3d.Fixture}}&lt;/div&gt;</summary>
		<author><name>MoKaLux</name></author>
	</entry>
</feed>