• Create Account

## Rotation in XNA

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

3 replies to this topic

### #1Aryprogrammer  Members

104
Like
0Likes
Like

Posted 29 June 2012 - 04:33 AM

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

### #2Tordin  Members

604
Like
0Likes
Like

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,
"There will be major features. none to be thought of yet"

### #3Aryprogrammer  Members

104
Like
0Likes
Like

Posted 01 July 2012 - 01:09 PM

I mean a local rotation

### #4anonymous22  Members

199
Like
0Likes
Like

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.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.