Thanks Mulchman I was able to find the "CreatePickingRay" code written by Yahn, I Just need to write some code to move the ray vectors from the client side to the server side now.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mulchman Sent: 30 January 2008 19:00 To: [email protected] Subject: [hlcoders] [hlcoders]Unproject 2D to world 3D / mouse coordinates to world There's a "GetVectorInScreenSpace( vecPlayerOrigin, iScreenX, iScreenY )" function you could use for taking a world position and getting screen coordinates for it. Also, if you search the archives Yahn posted code for mouse picking objects on the HUD and finding corresponding world coordinates for the objects being picked. -----Original Message----- From: [EMAIL PROTECTED] Subject: [hlcoders] [hlcoders]Unproject 2D to world 3D / mouse coordinates to world Hi I have been looking into converting 2D screen coordinates into 3D World coordinates. I have using a method based on spherical and cylindrical coordinates. Is there a function like Unproject I could use? Or do I need to use a method based on sweeping a trace line around the world And using Screentransform function? No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.516 / Virus Database: 269.19.18/1255 - Release Date: 01/02/2008 09:59 _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

