hanging object being affected by body speed

Moderators: Disciple, zlovatt

Post Reply
berTron
Posts: 6
Joined: October 18th, 2007, 12:58 pm
Contact:

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.
Mylenium
Posts: 139
Joined: July 20th, 2005, 12:07 am

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
[Pour Mylène, ange sur terre]
berTron
Posts: 6
Joined: October 18th, 2007, 12:58 pm
Contact:

ah, i think my problem was in using "speed" instead of velocity.

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