Hello!
At the time of writing the mod there was a small problem with the definition of variables in the vector, because of this the operators do not work
Description
Description
Details
Details
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- General
Steps To Reproduce
Example
test vector = Vector (10.2,1.3,3.5);
float coef = 3.0;
Option 1 - Doesn't Work
test[0] *= coef;
test[1] += coef;
test[2] -= coef;
Option 2 - Works
float a1 = test[0];
a1 *= coef;
test[0] = a1;
float a2 = test[1];
a2 += coef;
test[1] = a2;
float a3 = test[2];
a3 -= coef;
test[2] = a3;
Additional Information
Errors
Operator '*=' not supported with array accessor [] (TODO)
Operator '+=' not supported with array accessor [] (TODO)
Operator '-=' not supported with array accessor [] (TODO)