Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / Mouse position to 3d world

Author
Message
Bona
21
Years of Service
User Offline
Joined: 22nd Oct 2004
Location:
Posted: 23rd Oct 2004 23:34
Its quite obious that in a modern rts you move your mouse to over the screen and then click, you get the 3d cord (like in all RTS games) How do i fix this. HAve tried many times with no succes

The one and only Bona
Hamish McHaggis
23
Years of Service
User Offline
Joined: 13th Dec 2002
Location: Modgnik Detinu
Posted: 24th Oct 2004 04:02
You could use PICK OBJECT, or PICK SCREEN. PICK OBJECT detects whether you have hovered an object with mouse, and PICK SCREEN calculates the 3D world position by giving a 2D screen coordinate, and a distance from the camera (if you didnt give a distance, the mouse could be pointing to anywhere along the line you are pointing down).

Isn't it? Wasn't it? Marvellous!

Login to post a reply

Server time is: 2026-07-11 10:26:09
Your offset time is: 2026-07-11 10:26:09