Home > other >  Asked about unity camera follow figures
Asked about unity camera follow figures

Time:09-29

In this code, why use player. TransformDirection (offset)
Rather than
The transform. TransformDirection (offset)

CodePudding user response:

Transform. TransformDirection (offset) describes the script mounted the direction of change, the code is the camera follow the player, bound to describe player movement change, and so the camera to follow the player movement, the calculation should be change in the position of the player + player

CodePudding user response:

The player is defined by the transform
  • Related