Page 1 of 1

hanging object being affected by body speed

Posted: October 22nd, 2007, 9:59 am
by berTron
Hi I have two objects "body" and "hangy"

The hangy object is under the body, with the anchor point being where it connects to the body. It hangs down, obvs.

When the body flies, say from the right of the screen to the left, in two seconds, i want the hangy object to react accordingly. So that when the body starts flying, the hangy object is pointing straight down and then rotates to the right, and then as the body slows down, it slowly returns to its original position.

It'd be like if you had dangly ropes hanging from a magic carpet.

I just can't figure out how to do "in-between" in a lot of expressions.

Re: hanging object being affected by body speed

Posted: October 22nd, 2007, 10:31 am
by Mylenium
berTron wrote:I just can't figure out how to do "in-between" in a lot of expressions.
Check Dan Ebberts' site. There's a "springy connection" example somewhere which is pretty much what you need. The conditions are the same, you just need to modify it to work for rotation ratehr than position.

Mylenium

Posted: October 22nd, 2007, 12:30 pm
by berTron
ah, i think my problem was in using "speed" instead of velocity.

seems the linear() function is what i was supposed to do, too.