setting angle between two vector

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
levan
Halfling
Posts: 41
Joined: Sun Oct 27, 2013 11:57 pm
x 1

setting angle between two vector

Post by levan »

So I have some angle Alfa defined between two vectors AB and BC. I want to change this angle to some value but point A and B should not move only C is allowed to dislocate, kind of point B should rotate not around but along AB and BC axis and C should follow rotational pattern. Only thing I am thinking about how to implement it correctly is to create plane in Ogre out of these three points A, B, and C, then calculate norm vector to this plane and let point B rotate around this normal vector (with simple rotate method) with the value of the angle that we want to obtain and let C follow the rotational pattern of the point B, then both vectors will form desired angle. However if anybody has better ideas or may be in Ogre there is some functions that are doing it easily I will highly appreciate.


Many thanks

levan
Last edited by levan on Thu Oct 30, 2014 12:18 am, edited 6 times in total.
Post Reply