yigitakkok Posted November 17, 2015 Share Posted November 17, 2015 Hi, I have a world node. I want to find any points z value when I give x and y. What function should I use? Link to comment
silent Posted November 18, 2015 Share Posted November 18, 2015 Hi Yiğit, Not sure that I'm fully understand task that you are trying to achieve. Could you please give us more detailed description? Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
yigitakkok Posted November 18, 2015 Author Share Posted November 18, 2015 I have a very big ( 8000 m * 8000 m ) world node., I can find my car's x y z values by object.getWorldPosition(); But I can only find where my car is. For example if my car at x= 10 y = 10 I know z value of 10 - 10. But I want to find z value of for example x = 1450, y= 3444. Link to comment
silent Posted November 18, 2015 Share Posted November 18, 2015 Probably, you can use one of the getIntersection() methods from World class: http://old-docs.developer.unigine.com/scripting/library/engine/engine.worldthat will return coordinates of the intersection point (x, y, z). How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts