Original Post
Hey Gang,
I''m a little confused as to how to go about this problem. I have a model in memory that I have multiple instances of. Instead of storing the model many times I just store the position and create a world matrix and use that when I render the model. Now the problem is that I (the user) can move all over the world and I want to beable to click when I see a model and check for intersection with it. But I''m lost to how I should transform my position and direction of the ray I emit. I could test the ray and position as it is against the points in the model after all of them have been transferred to a new location but this seems like a lot more math then necessary.
I think I can transform the ray position and ray direction relative to the model''s position at 0,0,0. But I''m not sure how.
Does anyone understand or was it a bad explanation? Any help would be appreciated.
~Wave