Hey, i am trying to make a simple tracker for my object which will report the changes on that object,like rotation,scale,position etc.The update is pretty slow which i expected that it would be per frame but it is not.Could you point me out where am i wrong here?The update seems to be close to per second.
Thanks.
var time : float = 0;
function Update () {
if(time < 2) {
//cache the data from object at this time
time += 1;
}
if(time > 1) {
//cache the data from object at this time
time = 0;
}
//compare the caches
}