Third Person Cover Shooter
1.6
|
Strategical top down camera that follows characters and adjusts it's height based on the situation. More...
Public Member Functions | |
T | TargetComponent< T > () |
void | SetTargetImmediately (CharacterMotor value) |
override void | DeferUpdate (ICharacterController controller) |
Asks the camera to call UpdateAfterCamera on the given controller after the camera does it's update. More... | |
override void | UpdateForCharacterMotor () |
Update performed after the character motor does it's thing. More... | |
Public Attributes | |
CharacterMotor | Target |
Target character motor. More... | |
Vector3 | CalmOffset = new Vector3(-3, 9, -3) |
Camera offset from the target character when there are no enemies around. More... | |
Vector3 | DangerOffset = new Vector3(-4, 14, -4) |
Camera offset from the target character when there are enemies around. More... | |
float | OffsetSpeed = 2f |
Speed to move between different offsets. More... | |
float | ZoomDelay = 0.5f |
Time in seconds to go back to the calm offset after there are no more enemies around. More... | |
float | FOV = 45 |
Field of view. More... | |
float | Switch = 0.5f |
Time in seconds it takes for the camera to move between targets. More... | |
EnemyDistanceRange | EnemyDistances = new EnemyDistanceRange(5, 10) |
Min and max enemy distance. More... | |
MobileCameraTargetOffsets | TargetOffsets |
Target offsets for each character direction. More... | |
Properties | |
Vector3 | Forward [get] |
Forward/up direction for the character. More... | |
Vector3 | Right [get] |
Right direction for the character. More... | |
Strategical top down camera that follows characters and adjusts it's height based on the situation.
|
virtual |
Asks the camera to call UpdateAfterCamera on the given controller after the camera does it's update.
Implements CoverShooter.CharacterCamera.
void CoverShooter.TopDownCamera.SetTargetImmediately | ( | CharacterMotor | value | ) |
T CoverShooter.TopDownCamera.TargetComponent< T > | ( | ) |
T | : | MonoBehaviour |
|
virtual |
Update performed after the character motor does it's thing.
Implements CoverShooter.CharacterCamera.
Vector3 CoverShooter.TopDownCamera.CalmOffset = new Vector3(-3, 9, -3) |
Camera offset from the target character when there are no enemies around.
Vector3 CoverShooter.TopDownCamera.DangerOffset = new Vector3(-4, 14, -4) |
Camera offset from the target character when there are enemies around.
EnemyDistanceRange CoverShooter.TopDownCamera.EnemyDistances = new EnemyDistanceRange(5, 10) |
Min and max enemy distance.
Enemies outside of the range are not considered when zooming.
float CoverShooter.TopDownCamera.FOV = 45 |
Field of view.
float CoverShooter.TopDownCamera.OffsetSpeed = 2f |
Speed to move between different offsets.
float CoverShooter.TopDownCamera.Switch = 0.5f |
Time in seconds it takes for the camera to move between targets.
CharacterMotor CoverShooter.TopDownCamera.Target |
Target character motor.
MobileCameraTargetOffsets CoverShooter.TopDownCamera.TargetOffsets |
Target offsets for each character direction.
Targets are relative to the character's position.
float CoverShooter.TopDownCamera.ZoomDelay = 0.5f |
Time in seconds to go back to the calm offset after there are no more enemies around.
|
get |
Forward/up direction for the character.
|
get |
Right direction for the character.