Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void updateState(Vector2 pos, LinkedList<Projectile> pews){
- this.sprite.setAlpha(-125);
- double degrees = Math.toDegrees(Math.atan2(pos.y - this.center.y, pos.x - this.center.x));
- this.sprite.setRotation((float) degrees);
- this.p.setAcceleration((float)degrees);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement