private Vector location;private Vector velocity;private Vector acceleration;private int lifespan;private static final int MAX_LIFESPAN = 25;private static final int RADIUS = 7;
public boolean isAlive()
{
}
public void update()
{//code here}
Using java, if particle is alive then add velocity vector to location vector, add acceleration vector to velocity vector, and decrement lifespan by 1. Thank you.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here