package de.swagner.ld22; import com.badlogic.gdx.math.MathUtils; import com.badlogic.gdx.math.Vector3; public class Leaf extends Renderable { public float randomStart = 0; public Leaf(Vector3 position, float scale, float angleX, float angleY) { this.position = position.cpy(); this.collisionPosition.set(position); this.collisionPosition.y = 0; this.scale = scale; this.angleX = angleX; this.angleY = angleY; this.randomStart = MathUtils.random(1, 5555); } }