We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd535b commit 054334aCopy full SHA for 054334a
src/JavaGameEngine/Components/Component.java
@@ -206,10 +206,10 @@ public void update() {
206
float y = (parent.getPosition().getY()-((getScale().getY()/2)));
207
208
setPosition(new Vector2(x,y).add(getLocalPosition())); // we get the parents position and we add our localPosition
209
- /* update this in the setScale and setRotation instead
210
- setRotation(parent.getRotation().add(getLocalRotation()));
211
- setScale(parent.getScale().add(getLocalScale()));
212
- */
+ // update this in the setScale and setRotation instead
+ setRotation(parent.getRotation().add(getLocalRotation()));
+ setScale(parent.getScale().add(getLocalScale()));
+
213
214
}
215
if(components.size()>0){
0 commit comments