View Full Version : please help my expression question

07 July 2003, 05:15 PM
Hi all,

I have the following situation which I want to use expression to control.

1) I want ball A follow the position of ball B

2) while ball A following ball B, I want the distant between these two object vary over time ( I want to use a null to control this " let say, when the null move up in Y axis, the distant between the two ball become bigger" )

3) when ball B Stop, ball A stop at where it is, not continue to move and end at ball B position.

any hints and tip would be very appreciated.

Thanks in advance.


07 July 2003, 07:36 PM
For BallA X -
[BallB.Position.X] + ([Null.Position.X] * [Null.Position.Y])

For the Y - replace only [BallB.Position.X] to [BallB.Position.Y] ...
The same think with Z.

Now move Null on 1 m on X -this will add some basic distance from BallA to BallB if Null Y is bigger then zero ...

Hope this will help u,
Good luck.

CGTalk Moderation
01 January 2006, 02:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.