C# Class FlightCamera, Unity-Free-Flight

Inheritance: MonoBehaviour
Exibir arquivo Open project: NickolausDS/Unity-Free-Flight Class Usage Examples

Public Properties

Property Type Description
cam GameObject
firstPersonPosition Vector3
flareCamAngle float
flareCamDist float
flareDuration float
flareLag float
rotationLag float
target GameObject
thirdPersonLag float
thirdPersonPosition Vector3

Public Methods

Method Description
Awake ( ) : void
Update ( ) : void
flareLook ( ) : void

Adjust the camera angle for a flare maneuver. The look direction will be the area the player wants to land, forward/below them about 50 degrees. You can adjust the look angle and duration by modifying the flarelook angle/timer variables above.

Method Details

Awake() public method

public Awake ( ) : void
return void

Update() public method

public Update ( ) : void
return void

flareLook() public method

Adjust the camera angle for a flare maneuver. The look direction will be the area the player wants to land, forward/below them about 50 degrees. You can adjust the look angle and duration by modifying the flarelook angle/timer variables above.
public flareLook ( ) : void
return void

Property Details

cam public_oe property

public GameObject cam
return GameObject

firstPersonPosition public_oe property

public Vector3 firstPersonPosition
return Vector3

flareCamAngle public_oe property

public float flareCamAngle
return float

flareCamDist public_oe property

public float flareCamDist
return float

flareDuration public_oe property

public float flareDuration
return float

flareLag public_oe property

public float flareLag
return float

rotationLag public_oe property

public float rotationLag
return float

target public_oe property

public GameObject target
return GameObject

thirdPersonLag public_oe property

public float thirdPersonLag
return float

thirdPersonPosition public_oe property

public Vector3 thirdPersonPosition
return Vector3