public CameraTrackAndDollyYoVariablesHolder(YoVariableHolder holder) { if (holder != null) { if (holder.hasUniqueVariable("q_x")) { setTrackXVar((DoubleYoVariable) holder.getVariable("q_x")); setDollyXVar((DoubleYoVariable) holder.getVariable("q_x")); } if (holder.hasUniqueVariable("q_y")) { setTrackYVar((DoubleYoVariable) holder.getVariable("q_y")); setDollyYVar((DoubleYoVariable) holder.getVariable("q_y")); } if (holder.hasUniqueVariable("q_z")) { setTrackZVar((DoubleYoVariable) holder.getVariable("q_z")); setDollyZVar((DoubleYoVariable) holder.getVariable("q_z")); } } }