public class ThrustPiece
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
ageColor
A piece grows more transparent with age.
|
double |
birth
When this piece was born.
|
Point |
birthPos
Where he was born, used for rotation calcs
|
double |
birthRad
Size of this guy at birth.
|
double |
floorBounceColor
If he has bounced, this runs 0..1 from bounce to end
|
double |
floorBounceTime
When a piece bounces off the floor, his radius grows quicker and he floats up
|
int |
id
For finding and debugging
|
double |
maxAge
This guy lives this many seconds
|
double |
maxRad |
Point |
pos
The current position of this thrust
|
double |
rad
The radius of this rock
|
double |
roty
Y rotation relative to the engine
|
double |
rotz
Z rotation relative to the engine
|
int |
type
The type (1 of 10 colors)
|
Point |
vel
The current velocity of this rock.
|
Constructor and Description |
---|
ThrustPiece() |
public int id
public Point pos
public Point birthPos
public double rad
public Point vel
public int type
public double roty
public double rotz
public double ageColor
public double floorBounceColor
public double birth
public double floorBounceTime
public double maxRad
public double maxAge
public double birthRad