SpineSprite:getBoneLocation

From GiderosMobile
Revision as of 14:31, 13 July 2023 by Hgy29 (talk | contribs) (Text replacement - "<source" to "<syntaxhighlight")


Available since: Gideros 2018.12
Class: SpineSprite

Description

Create SpineSprite <syntaxhighlight lang="lua"> (number),(number),(nuimber) = SpineSprite:getBoneLocation(bone,lx,ly,lr) </source>

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