cbartondock 0 Newbie Poster

So, as indicated by the title, I have an interesting problem. In my 3d game I have several models -some of which are in world space (they are transformed by the view matrix, these models include asteroids, the home planet, the ship, etc), and some of which are in view space (these models are not transformed by the view matrix, they're a part of the games HUD and include an arrow that will always point towards the home planet). This brings me to my problem; I understand how to make one object in view space point to another in view space, or how to make one object in world space point to another in world space, but not how to make an object in view space (not transformed by the view matrix) point towards an object in world space (transformed by the view matrix).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.