Difference between revisions of "SpineSprite:getBoneLocation"
From GiderosMobile
(Created page with "__NOTOC__ <languages /> '''<translate>Available since</translate>:''' Gideros 2018.12<br/> '''<translate>Class</translate>:''' SpineSprite<br/> ==...") |
m (Text replacement - "</source>" to "</syntaxhighlight>") |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate>Create SpineSprite</translate> | <translate>Create SpineSprite</translate> | ||
− | < | + | <syntaxhighlight lang="lua"> |
(number),(number),(nuimber) = SpineSprite:getBoneLocation(bone,lx,ly,lr) | (number),(number),(nuimber) = SpineSprite:getBoneLocation(bone,lx,ly,lr) | ||
− | </ | + | </syntaxhighlight> |
=== <translate>Parameters</translate> === | === <translate>Parameters</translate> === | ||
'''bone''': (string) <translate>Bone name</translate> <br/> | '''bone''': (string) <translate>Bone name</translate> <br/> |
Latest revision as of 14:33, 13 July 2023
Available since: Gideros 2018.12
Class: SpineSprite
Description
Create SpineSprite
(number),(number),(nuimber) = SpineSprite:getBoneLocation(bone,lx,ly,lr)
Parameters
bone: (string) Bone name
lx: (string) X coordinate in bone space
ly: (string) Y coordinate in bone space
lr: (string) Rotation angle in bone space
Return values
Returns (number) X coordinate in SpineSprite space
Returns (number) Y coordinate in SpineSprite space
Returns (number) Rotation angle in SpineSprite space