Rotation in XNA

This topic is 2205 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

Recommended Posts

Hi guys,
How can I Rotate my vertices around a point (a custom pivot point)? is there any method to do this?

Share on other sites
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,

Share on other sites
I mean a local rotation

Share on other sites
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.

1. 1
Rutin
24
2. 2
3. 3
JoeJ
18
4. 4
5. 5

• 38
• 23
• 13
• 13
• 17
• Forum Statistics

• Total Topics
631712
• Total Posts
3001849
×