As shown in figure, want to realize the click of a mouse drag objects along the direction parallel to the ground,
Online to find the code runs parallel to the screen is the face of the movement, this object will float in drag
Reason is that online methods are object to the camera distance z is changeless, cause how objects move won't be far away from the screen, not what I want effect,
Y interval of the screen and objects to the screen as if also is not proportional to the distance z, although to a smaller coefficient is almost parallel to the ground, but not precise enough, brother maths is bad, want to broken head also don't know how to the whole,
Please tell everyone a great god,
CodePudding user response:
While using trigonometric function can really work out but I feel that I also pray for UNITY should be have their own wayCodePudding user response: