Difference between revisions of "R3d.Fixture:testPointInside"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Fixture<br/> === Description === Checks if a point is inside the fixture. <source lang="lua"> r3d.Fixture:tes...")
 
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Checks if a point is inside the fixture.
 
Checks if a point is inside the fixture.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Fixture:testPointInside(x,y,z)
 
r3d.Fixture:testPointInside(x,y,z)
 
</source>
 
</source>
Line 14: Line 14:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
</source>
 
</source>
  
 
{{R3d.Fixture}}
 
{{R3d.Fixture}}

Revision as of 15:30, 13 July 2023

Available since: Gideros 2019.10
Class: R3d.Fixture

Description

Checks if a point is inside the fixture. <syntaxhighlight lang="lua"> r3d.Fixture:testPointInside(x,y,z) </source>

Parameters

x: (number) the position of the point on the X axis
y: (number) the position of the point on the Y axis
z: (number) the position of the point on the Z axis

Example

<syntaxhighlight lang="lua"> </source>