What am I missing?
float stepSize = 0.0f;
int activeCircleRadius = 10;
int numSteps = 24;
AiLog.v(\"init activeCircleRadius \" + activeCircleRadius + \" numStep
Here both variables are integers so you are performing integer division:
activeCircleRadius / numSteps
The result of integer division is an integer. The result is truncated.
To fix the problem, change the type of one (or both) variables to a float
:
float stepSize = 0.0f;
float activeCircleRadius = 10;
Or add a cast to float in the division expression:
stepSize = (float)activeCircleRadius / numSteps;