[Solved] [LWJGL] Change axis of a model when using matrices

Hello!

I am trying to draw a line of text, but then rotate the whole line of text. Currently, each letter rotates independently, instead of following in a line.

This is how I have it setup at the moment:

  • Draw Text
    [list]
    [li]Start drawing a letter
    [list]
    [li]Translate matrix to specific x,y coordinate (for each letter, x increases)
  • Rotate matrix on z axis

[/li]
[/list]
[/li]
[/list]

What I think I need to do:

  • Draw Text
    [list]
    [li]Start drawing a letter
    [list]
    [li]Translate matrix to specific x,y coordinate of the START of where the text is drawn
  • Shift origin of matrix over on X axis by how far away the letter is
  • Rotate matrix on z axis

[/li]
[/list]
[/li][/list]

However, I do not know how to shift the origin of the matrix.