Hi all - I'm trying to get some understanding of controller scripts - especially spin. The script I've been trying to use is from Beiderman's site, as well as assistance from Kreator, to spin in the Z axis
float $speed;
$speed = 5; /* Replace 5 by your value for speed */
$orientation = (0, 0, sin($speed*time), cos($speed*time));
I always get a Parse error in the last line and nothing happens. Even tried leaving in the first default line, but no luck. The one time when it did work, by some unknown luck, the object spun, but always at 1.5 rotations per second, anti-clockwise, regardless of me changing values, even inputting negative values. Have tried in V.95 and .96a; same result.
Would very much appreciate some assistance here