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

            MatrixFunctions.Translate(ref matrix, item.Position);
            MatrixFunctions.RotateX(ref matrix, item.Rotation.X);
            MatrixFunctions.RotateY(ref matrix, item.Rotation.Y);
            MatrixFunctions.RotateZ(ref matrix, item.Rotation.Z);

            return(matrix);
        }