UEXDev

Korrekte Transformationsreihenfolge

May 6th, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. float scale = 2f;
  2. float rotateY = MathHelper.ToRadians(90);
  3. Vector3 position = new Vector3(0, 0, 0);
  4.  
  5. Matrix newMatrix =
  6.     Matrix.CreateScale(scale) *
  7.     Matrix.CreateRotationY(rotateY) *
  8.     Matrix.CreateTranslation(position);
Advertisement
Add Comment
Please, Sign In to add comment