About Store Forum Documentation Contact



Post Reply 
Ms.Pos with multiple viewports
Author Message
Dynad Offline
Member

Post: #1
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
Visit this user's website Find all posts by this user Quote this message in a reply
Driklyn Offline
Member

Post: #2
RE: Ms.Pos with multiple viewports
Code:
if (Inside(Ms.pos(), viewport[0].rect))
{
    // cast ray...
}
05-12-2011 12:39 AM
Find all posts by this user Quote this message in a reply
Dynad Offline
Member

Post: #3
RE: Ms.Pos with multiple viewports
Thnx, but yea im doing that already, but ive rewritten the render part so it works ok for now smile

There is always evil somewhere, you just have to look for it properly.
(This post was last modified: 05-12-2011 06:17 PM by Dynad.)
05-12-2011 06:17 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply