I have two unit vectors, a and b. How can I get the vector c which is parallel along the angle bisector of a and b.
Are these Vector2s?
If so I think you can do
local anglea = math.atan2(a.X, a.Y)
local angleb = math.atan2(b.X, b.Y)
These should give you the angles that each of vector a and b are at
The angle of the vector bisecting them is just the average of these
so
local anglec = (anglea + angleb) / 2
Then make a vector with that
local c = Vector2.new(math.cos(anglec), math.sin(anglec))
What tongy posted is probably more of what you’re looking for, but I was trying to visualize what was going on and the method I went for basically gave you a coordinate on C with an adjustable length of C. If it helps any here you go.
If both vectors are unit vectors, then the sum of the vectors will bisect the angle between them. (Unless I am misunderstanding your question.)
it looks like you are just adding the vectors together then normalizing it to me