Difference between revisions of "R3d.Body:setType"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2019.10<br/> '''Class:''' R3d.Body<br/> === Description === Sets the body type. Can be one of the following: *r3d.Body.STATIC_BODY '''0'''...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:
 
*r3d.Body.KINEMATIC_BODY '''1'''
 
*r3d.Body.KINEMATIC_BODY '''1'''
 
*r3d.Body.DYNAMIC_BODY '''2'''
 
*r3d.Body.DYNAMIC_BODY '''2'''
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
r3d.Body:setType(type)
 
r3d.Body:setType(type)
</source>
+
</syntaxhighlight>
  
 
=== Parameters ===
 
=== Parameters ===
Line 15: Line 15:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
plane.body:setType(r3d.Body.STATIC_BODY)
 
plane.body:setType(r3d.Body.STATIC_BODY)
 
cube01.body:setType(r3d.Body.KINEMATIC_BODY )
 
cube01.body:setType(r3d.Body.KINEMATIC_BODY )
 
cube02.body:setType(2)
 
cube02.body:setType(2)
</source>
+
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 15:31, 13 July 2023