Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

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.

  • You cannot reply to this topic
3 replies to this topic

#1 Aryprogrammer   Members   -  Reputation: 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?

Sponsor:

#2 Tordin   Members   -  Reputation: 516

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"

#3 Aryprogrammer   Members   -  Reputation: 104

Like
0Likes
Like

Posted 01 July 2012 - 01:09 PM

I mean a local rotation

#4 wiz3kid   Members   -  Reputation: 163

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.
<= 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.




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.



PARTNERS