
Camera and Input Documentation:
-
CameraCollision Script Parameters (Section 2.1.2)
-
Character Rep
-
This value should be set to the “Character” gameobject.
-
-
Player Offset
-
This value determines where the focus of the camera’s look at function is in relation to the character rep’s location. Normally only the Y value is adjusted so that the camera is not looking towards the players feet.
-
-
Movement Speed
-
This value is the speed that the camera moves forward and backwards at when preforming its primary function. A speed value that is too high may seem jarring, while a speed value that is too low may allow the user to see the camera clipping through an object for a fraction of a second or possibly longer.
-
-
Camera Clip Layer
-
This layer defines what the camera tries to avoid clipping with. This script will not function properly if it is attempting to avoid clipping with the Projected Player or Ragdoll (See Section 1.2 for setting up layers). Use the minimum distance parameter for problems with the camera clipping with the character mesh (1.i).
-
-
Border Width
-
This value is the width of the frame around the camera and the base width of the frame around the character.
-
-
Border Height
-
This value is the height of the frame around the camera and the base height of the frame around the character.
-
-
Border Distance
-
This value is the forward distance of the frame in front of the camera and the base forward distance of the frame in front of the character.
-
-
Border Radius
-
This value represents the radius of the spherecasts. Increasing this value “thickens” the borders for different camera results as needed.
-
-
Minimum Distance
-
This value represents the closest world position distance the camera can be at in relation to the character. Setting this value too low will produce undesired results.
-
-
Player Multiplier
-
The width and height of the player’s frame is the border width and border height parameters multiplied by this value. This value is normally set to 0 unless different results are required.
-
-
Distance Multiplier
-
The forward distance of the player’s frame is the border distance parameter multiplied by this value. This value is normally set to 0 unless different results are required.
-
-
Camera Offset
-
This value determines how far in front of the spherecast collision point the camera will be. This value is normally kept to a low value.
-
-
Draw Gizmos
-
When enabled and Gizmos are enabled in the render window, the camera’s and player’s frames will be visualized. This is used for initial camera collision setup and debugging purposes.
-
-