Power on fracture rounding issue?
in
Programming Questions
•
1 year ago
Hello all,
I am trying to apply easing on the speed with which a cube becomes larger.
I'm not sure why but when i try to take the n-th square root (through a power 1/n), processing doesn't seem to calculate my fracture power correctly...
Below is how I tried to implement the easing:
-
float growSpeed= pow(cubeSize, 1/time);
where growSpeed is the multiplication factor for each frame, until the framecount reaches the 'time' set for the animation to complete.
when I do println(growSpeed); I always get 1.0 as a result... :/
Your help is much appreciated! Thank you
1