Jump to content
Armanda551

Picture size is going crazy

Recommended Posts

Alright im working with drawicon3d to draw a picture on my target cursortarget so when im near to the target my picture or icon is going to be really small and when im going farer its going to be very big. I want it that its gonna be very big when im near to him and it should be small from far.

is that possible?

and my fov i mean when im looking with + to my enemy its getting also smaller

I have sth in my head saying something with 2d things idk thats why i am asking here :)

Share this post


Link to post
Share on other sites

Get the distance:

(positionCameraToWorld [0,0,0]) distance tgtobj

And here's my solution to get zoom level:

(worldToScreen (positionCameraToWorld [safeZoneW,0,safeZoneH]) select 0)

Use these values to adjust size.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×