Exemple #1
0
        public override Matrix GetHandleMatrix(SETItem item)
        {
            Matrix matrix = Matrix.Identity;

            MatrixFunctions.Translate(ref matrix, item.Position);
            MatrixFunctions.RotateObject(ref matrix, item.Rotation);

            return(matrix);
        }
Exemple #2
0
        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);
        }