Using project() in specifc camera
by Abelmon Bastos · in Torque Game Engine · 04/07/2007 (7:15 am) · 0 replies
Hi,
I was trying to implement player icons in the Commander Map HUD (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5277) and I got some difficult.
The author suggests to use project() function to convert world coordinates to map coordinates. But the project function converts the players coordinates to the playGui coordinates, not to mapHudGui coordinates. That is, the players icons stay over the players in the play screen, not in the map screen (see image).
http://arivan.no-ip.org:8080/triade/problem.jpg
How to use the project() function with the mapHud camera?
Thank
I was trying to implement player icons in the Commander Map HUD (http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5277) and I got some difficult.
The author suggests to use project() function to convert world coordinates to map coordinates. But the project function converts the players coordinates to the playGui coordinates, not to mapHudGui coordinates. That is, the players icons stay over the players in the play screen, not in the map screen (see image).
http://arivan.no-ip.org:8080/triade/problem.jpg
How to use the project() function with the mapHud camera?
Thank