bontempos
12-17-2007, 05:37 PM
Hi there.
Its just a simple quest, I hope anyone could help me.
I have wrote a expression in my pc, now it wont work in mac.
this is the code working on pc:
float $trigger = floor (frame%50);
float $goal;
float $range = 30;
if ($trigger == 0) $goal = rand(-$range , $range);
Aim_cube.rotateX += ($goal - Aim_cube.rotateX)*.3 ;
if (frame == 1 ) Aim_cube.rotateX = 0;
The cube shouldnt rotate more than 30 degrees, but in OSX it reaches highest values in a blink. I tryed to use abs(), or change the terms, but couldn work it out on mac.
Why so?
Thanks
Anderson
Its just a simple quest, I hope anyone could help me.
I have wrote a expression in my pc, now it wont work in mac.
this is the code working on pc:
float $trigger = floor (frame%50);
float $goal;
float $range = 30;
if ($trigger == 0) $goal = rand(-$range , $range);
Aim_cube.rotateX += ($goal - Aim_cube.rotateX)*.3 ;
if (frame == 1 ) Aim_cube.rotateX = 0;
The cube shouldnt rotate more than 30 degrees, but in OSX it reaches highest values in a blink. I tryed to use abs(), or change the terms, but couldn work it out on mac.
Why so?
Thanks
Anderson
