Dynad
Member
|
Ms.Pos with multiple viewports
Hi,
I want to normalise the Ms.pos() per viewport.. Now i have 2 viewports at the same time and i want to cast a raycast with Ms.Pos(). But the Ms.Pos() gives me the coordinates from the entire window... is there a way to normalise this to the viewport which is activated?
Thnx,
~Dynad
There is always evil somewhere, you just have to look for it properly.
|
|
05-10-2011 04:55 PM |
|
Driklyn
Member
|
RE: Ms.Pos with multiple viewports
Code:
if (Inside(Ms.pos(), viewport[0].rect))
{
// cast ray...
}
|
|
05-12-2011 12:39 AM |
|