public void ExecuteVector(ref WooState state, string varName, Expression expression) { Vector3 value = expression.EvaluateVector(ref state); Vector3 current = state.GetValueVector(varName); current.x += value.x; current.y += value.y; current.z += value.z; state.SetValue(varName, current); }
public void ExecuteVector(ref WooState state, string varName, Expression expression) { Vector3 value = expression.EvaluateVector(ref state); Vector3 current = state.GetValueVector(varName); current.x += value.x; current.y += value.y; current.z += value.z; state.SetValue(varName, current); }
public Vector3 EvaluateVector(ref WooState state) { if (_Type == VarType.varVector) { return(state.GetValueVector(_Variable)); } else { throw new EvaluateException("Float variables can't evaluate to vectors.\n"); } }
public Vector3 EvaluateVector(ref WooState state) { if (_Type == VarType.varVector) return state.GetValueVector(_Variable); else throw new EvaluateException("Float variables can't evaluate to vectors.\n"); }