Trying to about vectors and matrices to aid my game design hobby

Click For Summary
SUMMARY

This discussion focuses on the application of vectors and matrices in game design, specifically using C# and XNA. The user seeks assistance with matrix multiplication and rotation matrices, particularly in rotating a 2D object counterclockwise by 45 degrees. Key examples include finding the product of matrices A and B, and determining the new coordinates of triangle vertices after rotation. The conversation highlights the importance of understanding these mathematical concepts for effective game development.

PREREQUISITES
  • Basic understanding of C# programming
  • Familiarity with XNA game development framework
  • Knowledge of linear algebra concepts, specifically vectors and matrices
  • Understanding of 2D transformations in graphics programming
NEXT STEPS
  • Study matrix multiplication techniques and their applications in game physics
  • Learn how to implement rotation matrices in C# using XNA
  • Explore the use of transformation matrices for 2D graphics
  • Investigate the effects of different rotation angles on object positioning
USEFUL FOR

Game developers, particularly those working with C# and XNA, as well as hobbyists interested in applying mathematical concepts to enhance their game design skills.

silverspawn
Messages
1
Reaction score
0
Hello

Just took on a new hobby..being game design know a little c# and decided to try my hand at xna...the problem is I am also trying my hand at vectors and matrices also, as I know this with gaming goes hand in hand.

Kinda picking up the basics to vectors but with matrices not got a great deal of knowledge or lit on the topic

I came across these but not sure how to work it out;


A =(1 -2 3) (3 1 5) (0 1 -3) B = ( 1 -8) (-9 8 )(2 4 )


Find A x B2 (a) write out the rotation matrix that rotates an 2D object counterclockwise by 45 degrees by the coordinate origin.

b) suppose the three vertices of a triangle are A(0,0), B(10,5) and C(5,8) .Where are the vertices after the triangle is rotated counterclockwise 45 degrees by the coordinate origin?

Any help guidance would be greatful
 
Last edited:
Physics news on Phys.org

Similar threads

  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 6 ·
Replies
6
Views
3K