Hi guys,
How can I Rotate my vertices around a point (a custom pivot point)? is there any method to do this?
3 replies to this topic
Sponsor:
#2 Members - Reputation: 516
Posted 29 June 2012 - 05:52 AM
If you refer to rotating around a arbitrary axis, you could just multiply your vertexs world matrix with the points world matrix.
then it becomes more of a local matrix.
http://en.wikipedia.org/wiki/Transformation_matrix
but if you can, try to explain the situation and abit more about your problem,
then it becomes more of a local matrix.
http://en.wikipedia.org/wiki/Transformation_matrix
but if you can, try to explain the situation and abit more about your problem,
"There will be major features. none to be thought of yet"
#4 Members - Reputation: 163
Posted 02 July 2012 - 10:07 AM
Please specify whether you are talking about 2 or 3 dimensions, rotation around a point can be performed only in 2D, rotation in 3D is done around an axis.
You can not rotate around a point in 3D because there are infinite directions around it to represent axes.
You can not rotate around a point in 3D because there are infinite directions around it to represent axes.
<= A n00b programmer, on 06 June 2011 - 04:28 AM, said:
Someone once told me learning C++ was like learning how to juggle knives...
<= Servant of the Lord, on 06 June 2011 - 04:43 AM, replied:
That's not true at all! C++ doesn't require anywhere near the hand-eye coordination juggling requires. And with C++ after you slip and kill someone with the knife, you can reuse it for something else afterward. With actual knives, you have to get rid of the evidence.
Someone once told me learning C++ was like learning how to juggle knives...
<= Servant of the Lord, on 06 June 2011 - 04:43 AM, replied:
That's not true at all! C++ doesn't require anywhere near the hand-eye coordination juggling requires. And with C++ after you slip and kill someone with the knife, you can reuse it for something else afterward. With actual knives, you have to get rid of the evidence.






