On 04/11/2013 at 03:34, xxxxxxxx wrote:
User Information:
Cinema 4D Version:
Platform:
Language(s) :
---------
I want to be able to control (programatically) the amount of rotation, to what extent an Object A shall follow the rotation of Object B.
When the percentage is 0%, ObjectA sits still, no rotation at all.
When the percentage is 100%, ObjectA's rotation is equal to Object B's rotation.
Getting hold of ObjectA's rotation Vector and multiplying this by 0.0 to 1.0 doesn't always work, it depends on how ObjectB is rotated.
The effect I am after is the same as you see when using Animation Clips in C4D, there you have a Percentage value for each animation layer. If an Object is rotated from 0º to 800º during an animation, setting the Clip Layer to 50% results in a rotation of 0º to 400º. Exactly what I am after.
I just need a formula where I can enter a percentage value (0.0 .. 1.0) and use that.
I can also use a third reference object if necessary, and set its rotation to 0º 0º 0º. Or a zeroed out Matrix or Vector as reference.
I hope that someone reading this has more knowledge of math, matrices and vectors that I have, and knows how to do this!
-Ingvar