Exemplo n.º 1
0
        /// <summary>
        /// Returns the transformation matrix of this <see cref="GameElement"/>.
        /// </summary>
        public Matrix4f GetTransformation()
        {
            Matrix4f t = Matrix4f.CreateTranslation(_translation);
            Matrix4f r = Matrix4f.CreateRotation(_rotation);
            Matrix4f s = Matrix4f.CreateScale(_scale);

            return(s * r * t);
        }