Home > other >  Camera control
Camera control

Time:09-25

Like "torchlight" or "diablo Ⅲ" this camera follow the protagonist, the mouse wheel to zoom, this how?
There is a detail, when the lens tall buildings, building people blocked, how? Figure highlights, transparent or building?

CodePudding user response:

Method 1: put the main camera in the leading role of the following, as a child object, adjust the camera Angle of view, will be followed at this time.
Method 2: let the camera position or rotation associated with code distance attribute and the leading role and the corresponding adjustment, etc.

The mouse wheel scale effects, detect whether there is a pulley sliding, if it is to let the camera and the leading role of distance with smooth rotation to produce change.

CodePudding user response:

refer to the second floor pncooen response:
method 1: put the main camera in the leading role, as a child object, adjust the camera Angle of view, will be followed at this time.
Method 2: let the camera position or rotation associated with code distance attribute and the leading role and the corresponding adjustment, etc.

Mouse wheel scale effects, detect whether there is a sliding pulley, if it is to let the camera and the distance from the protagonist as smooth rotation changes.


Principle I also understand, do a lot of problems when
Actually, I also have another question, is the lens will be shaking, touching the wall, for example, people will shake, followed by camera shake,

CodePudding user response:

In the standard assets/character contler/sources/scripts/ThirdPersonCamera with video cameras follow moving characters, you can reference or learn

CodePudding user response:

In the standard assets/character contler/sources/scripts/ThirdPersonCamera with video cameras follow moving characters, you can reference or learn

CodePudding user response:

To ask??????

CodePudding user response:

The building Lord ask are some high-end details, to ask?

CodePudding user response:

reference zooen2011 reply: 3/f
Quote: refer to the second floor pncooen response:

Method 1: put the main camera in the leading role of the following, as a child object, adjust the camera Angle of view, will be followed at this time.
Method 2: let the camera position or rotation associated with code distance attribute and the leading role and the corresponding adjustment, etc.

Mouse wheel scale effects, detect whether there is a sliding pulley, if it is to let the camera and the distance from the protagonist as smooth rotation changes.


Principle I also understand, do a lot of problems when
Actually, I also have another question, is the lens will be shaking, touching the wall, for example, people will shake, followed by camera shake,


Shake you would make a low pass filter, Vector3. Lerp
  • Related