hotknife
03-20-2005, 08:17 PM
Very new to maxscript and I'm trying to write a script that turns a wheel accurately based on it's distance moved. All is working until the motion of the wheel 'reverses' and it continues to spin the wrong way.
So how can I give an object a 'forwards' direction or vector, so that I can detect when it's travelling 'backwards'.......E.g I thought I'd be able to say that the Y axis of a parent object was the forward direction of the attached wheel but I'm unable to detect anything useful along its axis of travel........
I'm looking at the -in coordsys local/parent- for clues but any help would be appeciated....
So how can I give an object a 'forwards' direction or vector, so that I can detect when it's travelling 'backwards'.......E.g I thought I'd be able to say that the Y axis of a parent object was the forward direction of the attached wheel but I'm unable to detect anything useful along its axis of travel........
I'm looking at the -in coordsys local/parent- for clues but any help would be appeciated....
