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.
hanging object being affected by body speed
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.berTron wrote:I just can't figure out how to do "in-between" in a lot of expressions.
Mylenium
[Pour Mylène, ange sur terre]
ah, i think my problem was in using "speed" instead of velocity.
seems the linear() function is what i was supposed to do, too.
seems the linear() function is what i was supposed to do, too.