-
toWorld Speed value?
I’m trying to return the speed of an layer that is parented to another layer. That is, the speed of the child layer relative to the world. I can’t figure the syntax out. I would have assumed something like this:
thisLayer.toWorld(thisLayer.position.speed)
I keep getting an error that says “First argument to toWorld must be a vector of length 2 or 3.”
um… so yeah. Any thoughts?
Also, I guess I should say what I’m trying to do, incase there’s just a better way to do it. I’ve got a branch, it’s sort of blowing up and down in the wind (rotationally), and I have a couple leaves attached to it. And I want the leaves closer to the end of the branch to rotate farther than the ones closer to the base of it whenever the branch moves. So I figured the relative toWorld speed would be the best value to use to augment the rotation.
Any thoughts?