layer orientation without "lookat"
Posted: August 8th, 2008, 12:55 am
Hi,
I have 3 layers A, B, C inside my comp.
In a 3D space, B is positioned between A and C using this basic stuff:
B.position = (A.position+C.position)*.5
Now I would like B to orient towards those layers just like using Lookat(,), but whitout using Lookat(,).
This, because later on, I want B's orientation to depend partly on other variables.
I am a beginner at trigo and Javascript and I get really strange results from my use of Dan Ebbert's stuffs about trigo and inversed kinematics.
Can anyone help ?
Maxime
I have 3 layers A, B, C inside my comp.
In a 3D space, B is positioned between A and C using this basic stuff:
B.position = (A.position+C.position)*.5
Now I would like B to orient towards those layers just like using Lookat(,), but whitout using Lookat(,).
This, because later on, I want B's orientation to depend partly on other variables.
I am a beginner at trigo and Javascript and I get really strange results from my use of Dan Ebbert's stuffs about trigo and inversed kinematics.
Can anyone help ?
Maxime