View Single Post
# 3 03-02-2013 , 05:15 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
The noise() function is handy for these kinds of situations. It takes in time and outputs values between -1 and 1. So something like this would work:

Code:
float $fFreq = 1.0;
float $fMag = 3.0;

myObject.rotateZ = $fMag * noise(time * $fFreq);


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!