mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Don't need MathUtils here.
This commit is contained in:
parent
fbd18ec0cb
commit
7c8cd2cca8
@ -34,7 +34,6 @@ import static com.esotericsoftware.spine.utils.SpineUtils.*;
|
|||||||
import com.badlogic.gdx.graphics.Color;
|
import com.badlogic.gdx.graphics.Color;
|
||||||
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
|
import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
|
||||||
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
import com.badlogic.gdx.graphics.g2d.TextureRegion;
|
||||||
import com.badlogic.gdx.math.MathUtils;
|
|
||||||
|
|
||||||
import com.esotericsoftware.spine.Bone;
|
import com.esotericsoftware.spine.Bone;
|
||||||
|
|
||||||
@ -89,8 +88,8 @@ public class RegionAttachment extends Attachment {
|
|||||||
localX2 *= scaleX;
|
localX2 *= scaleX;
|
||||||
localY2 *= scaleY;
|
localY2 *= scaleY;
|
||||||
float rotation = getRotation();
|
float rotation = getRotation();
|
||||||
float cos = (float)Math.cos(MathUtils.degRad * rotation);
|
float cos = (float)Math.cos(degRad * rotation);
|
||||||
float sin = (float)Math.sin(MathUtils.degRad * rotation);
|
float sin = (float)Math.sin(degRad * rotation);
|
||||||
float x = getX();
|
float x = getX();
|
||||||
float y = getY();
|
float y = getY();
|
||||||
float localXCos = localX * cos + x;
|
float localXCos = localX * cos + x;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user