hi there having a problem calculating a new vector mainly due to my failing of understanding of vectors and Quaternions.
i have 3 points A, B and C and two vectors A->B and B->C,
i want to create a new vector which is vector AB rotated by 20 degrees towards vector BC.
what i have tried to do is get the cross product between the two vector to get a rotation axis then use Quaterion.AngleAxis, however i don’t know how to apply this to a vector3.
how would i go about doing this correctly?
thanks for any help
Ken.
here is my bad code if it helps
Vector3 newWirePoint;
Vector3 A = wirePoint[x-1]-wirePoint[x-2];
Vector3 B = anchorPos-wirePoint[x-1];
Vector3 AcrossB = Vector3.Cross(A,B);
newWirePoint = A.normalized * 0.05f;
newWirePoint = Quaternion.AngleAxis(20,AcrossB);