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.

Newcomers AppGameKit Corner / Set Pixel size based off 3d object size/camera angle?

Author
Message
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 14th Mar 2018 01:21 Edited at: 14th Mar 2018 01:22
I am trying to use this code, but its a little off.
I want the entire object to be covered over by the sprite.

Any help? Thanks!

Attachments

Login to view attachments
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 14th Mar 2018 02:41
Maybe try GetObjectWorldX(), GetObjectWorldY(), GetObjectWorldZ()
Golelorn
7
Years of Service
User Offline
Joined: 20th Nov 2016
Location:
Posted: 14th Mar 2018 03:35 Edited at: 14th Mar 2018 03:43
Unfortunately, GetobjectWorldX returns the same as getobjectX. I believe that command is useful when objects are fixed to each, but I could be wrong. I have never needed to use it. I don't think its used to convert to 2d coords.
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 14th Mar 2018 05:35 Edited at: 14th Mar 2018 06:28
Try this: Add a box object at MinX/Y/Z and MaxX/Y/Z.
I think you need to get the 2d co-ordinates of a combination of the min/max values and then extract the smallest and largest x/y values from that list

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-04-19 04:27:56
Your offset time is: 2024-04-19 04:27:56