|09 September 2004||#1|
Join Date: Jun 2002
Script controller question
I`ve been trying to write a position script that makes an object (Dummy01) follow another object (Dummy02) based on the value of a custom attribute spinner value. For example:
When the CA spinner value == 100 then Dummy01 follows Dummy02
When the CA spinner value == 0 then Dummy01 remains planted in space where Dummy02 left it. leaving Dummy02 to travel around the scene .
A further twist to the behaviour I wanted is, as the CA spinner value increases from zero then Dummy01 not only starts to follow Dummy02 again but is catching up. so at spinner value 100 Dummy01 is fully locked too and following Dummy02`s position again.
I've tried to do this with constraints but its not quite right, I suppose the behaviour I want is like the Link constraint but more dynamic.
Some of the problems I am facing (Apart from my own stupidity) is a position script cant seem to make reference to its own position. If I could get the position script to capture its own position when the spinner reach Zero and hold it until the spinner value increased I reckon I would be half way there.
If anybody has any suggestions or tips I would be very greatfull.
Thanks for reading
Animator / Benign Lurker
Out of my depth.
|09 September 2004||#2|
me me me...portfolio
Plymouth, United Kingdom
this is similar topic covered in the next video i'm working on, i have some source i can send when i'm at home if you like?
|Thread Closed share thread|