Original Post
Hi,
I have a light class, in which the light is represented by a cone(mesh) and I want the light to shine in the direction the cone is pointing at. For example I want to rotate the mesh 50degrees on the X-axis and 30degrees on the Y-axis. And I don''t know how to get the Direction member of D3DLIGHT8 to match the mesh''s direction accordingly.