public void setObstacle(RGB.Color type, Vector3 speed) { mObstacleType = type; mMovementSpeed = speed; setColor(mObstacleType); }