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.

AppGameKit Classic Chat / GetScreenXFrom3D

Author
Message
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 24th Oct 2016 21:59
This function seems to return a realistic value if then camera is facing the exact opposite way. Same for GetScreenYFrom3D
As you rotate the object off-screen by moving the camera, the value goes negative, then very large and then wraps around to real values again when facing exactly the other way. It's been like it since the early days of version 2.

Mobiius
Valued Member
21
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 25th Oct 2016 09:05
Is it not in radiians?
nz0
AGK Developer
16
Years of Service
User Offline
Joined: 13th Jun 2007
Location: Cheshire,UK
Posted: 25th Oct 2016 22:16
I just found another post which referred to this same problem - it's been like it for a long time. Someone posted a function for angle to camera which works as a temporary solution at least.

Login to post a reply

Server time is: 2024-04-27 03:00:27
Your offset time is: 2024-04-27 03:00:27