Back to project page libgdx-demo-pax-britannica.
The source code is released under:
Copyright (c) 2010 Ben Abraham, Renaud B?dard, Henk Boom, Daniel Burton, Matthew Gallant Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated ...
If you think the Android project libgdx-demo-pax-britannica listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package de.swagner.paxbritannica.particlesystem; //from w w w. j a va 2s. com import com.badlogic.gdx.math.Vector2; public class Particle { float life; Vector2 position = new Vector2(); Vector2 velocity = new Vector2(); float scale; public Particle() { } public void setup(Vector2 position, Vector2 velocity, float life, float scale) { this.position.set(position); this.velocity.set(velocity); this.life = life; this.scale=scale; } }