From d00d4f16195ed846ed284dac8d7523437cfbf841 Mon Sep 17 00:00:00 2001 From: Damien Date: Wed, 12 May 2021 13:57:49 +0200 Subject: [PATCH] la texture suit la rotation de la planet --- core/src/sagittarius/model/Planet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/sagittarius/model/Planet.java b/core/src/sagittarius/model/Planet.java index ba5d9e9..b8875e1 100644 --- a/core/src/sagittarius/model/Planet.java +++ b/core/src/sagittarius/model/Planet.java @@ -39,7 +39,8 @@ public class Planet extends EntityCircle { @Override public void draw (Batch batch, float parentAlpha) { - batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius, 2 * this.radius, 2 * this.radius); + batch.draw(texture, getPosition().x - this.radius, getPosition().y - this.radius, this.radius, this.radius, 2 * this.radius, 2 * this.radius, + 1, 1, getRotation(), 0, 0, texture.getWidth(), texture.getHeight(), false, false); } }