Home > Back-end >  World coordinates and the screen coordinates transformation
World coordinates and the screen coordinates transformation

Time:10-16

Vector3 screenPos=new Vector3 (Screen width, 0, 0).
Vector3 moveWidth=Camera. Main. ScreenToWorldPoint (screenPos);
float ballWidth=ball. GetComponent (a). Bounds. Extents. X;
MaxWidth=moveWidth. X-ray ballWidth;
The red words is what meaning, I am a beginner, please the teacher for help,

CodePudding user response:

VS the IDE in don't understand the symbol on the right mouse button, choose to define,

CodePudding user response:

This is a unity of it

CodePudding user response:

Is this problem solved? I couple also appears the same problem,

CodePudding user response:

Is d?

CodePudding user response:

My Screen width value is 883, why by Camera. The main. ScreenToWorldPoint (screenPos); After conversion, moveWidth. The value of x into 0.3
  • Related