public override Matrix GetHandleMatrix(SETItem item) { Matrix matrix = Matrix.Identity; MatrixFunctions.Translate(ref matrix, item.Position); MatrixFunctions.RotateObject(ref matrix, item.Rotation); return(matrix); }
public override Matrix GetHandleMatrix(SETItem item) { Matrix matrix = Matrix.Identity; MatrixFunctions.Translate(ref matrix, item.Position); MatrixFunctions.RotateObject(ref matrix, item.Rotation); float size = item.Scale.X + 1.0f; MatrixFunctions.Scale(ref matrix, size, size, size); return(matrix); }