Hello friends,
I'm trying to work with the Quaternion-Object.
My cam-Object should align to the direction vector and pointed in this case in X-Direction.
But if print the q.v value I get a zero vector and the rotation is not applied
Does I misunderstood the Quaternion-Syntax? I can't find nothing about that.
–
Thanks
import c4d
cam = op.GetObject()
def main():
direction = c4d.Vector(10,0,0).GetNormalized()
angle = 0
q = c4d.Quaternion()
q.SetAxis(direction, angle)
b = q.GetMatrix()
b.off = cam.GetAbsPos()
cam.SetMg(b)
print q.v