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 / Issue with GetScreenXFrom3D ??

Author
Message
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 9th Jun 2018 20:09
OK, so not sure if this is a bug or not but.....

If you place an object, place the camera at it's position, move the camera locally backwards by any amount, then use


it all works fine and you get the screen coord of the minimum x position of the object. Now slowly move the camera locally along the Z axis towards the object and keep calling the above line of code......the X coord isn't changing, even though the left most position of the object BLANTANTLY is.

All other examples of this seems to work fine, but just moving the camera locally doesn't seem to work???
Santman
13
Years of Service
User Offline
Joined: 15th Sep 2011
Location: Inverness
Posted: 9th Jun 2018 20:26
Found the issue - it's scaling. Getting the mesh min sizes doesn;t work unless you use SetObjectScalePermanent

Login to post a reply

Server time is: 2024-11-23 20:34:12
Your offset time is: 2024-11-23 20:34:12