getSpeed method

double getSpeed()

Returns the current speed of this game entity.

Implementation

double getSpeed() {
	return velocity.length;
}