Difference between revisions of "R3d.Body:getTransform"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
Line 13: Line 13:
 
=== Example ===
 
=== Example ===
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 +
local m1 = cube.body:getTransform()
 +
cube:setMatrix(m1) -- aligns the cube shape to its body transform
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
{{R3d.Body}}
 
{{R3d.Body}}

Latest revision as of 09:19, 18 December 2025