Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
VehiclePhysics.CameraSmoothFollow Class Reference
Inheritance diagram for VehiclePhysics.CameraSmoothFollow:
VehiclePhysics.CameraMode

Public Member Functions

override void Reset (Transform self, Transform target)
 
override void SetTargetConfig (VPCameraTarget targetConfig)
 
override void Update (Transform self, Transform target, float deltaTime)
 
- Public Member Functions inherited from VehiclePhysics.CameraMode
virtual void Initialize (Transform self)
 
virtual void OnDisable (Transform self)
 
virtual void OnEnable (Transform self)
 
virtual void SetPose (Transform self, Vector3 position, Quaternion rotation)
 

Public Attributes

float distance = 10.0f
 
bool followVelocity = true
 
float height = 5.0f
 
float heightDamping = 2.0f
 
float heightMultiplier = 0.5f
 
float rotationDamping = 3.0f
 
float velocityDamping = 5.0f
 
- Public Attributes inherited from VehiclePhysics.CameraMode
KeyCode hotKey = KeyCode.None
 

Additional Inherited Members

- Static Public Member Functions inherited from VehiclePhysics.CameraMode
static float GetInputForAxis (string axisName)
 

Member Function Documentation

override void VehiclePhysics.CameraSmoothFollow.Reset ( Transform  self,
Transform  target 
)
inlinevirtual

Reimplemented from VehiclePhysics.CameraMode.

override void VehiclePhysics.CameraSmoothFollow.SetTargetConfig ( VPCameraTarget  targetConfig)
inlinevirtual

Reimplemented from VehiclePhysics.CameraMode.

override void VehiclePhysics.CameraSmoothFollow.Update ( Transform  self,
Transform  target,
float  deltaTime 
)
inlinevirtual

Reimplemented from VehiclePhysics.CameraMode.

Member Data Documentation

float VehiclePhysics.CameraSmoothFollow.distance = 10.0f
bool VehiclePhysics.CameraSmoothFollow.followVelocity = true
float VehiclePhysics.CameraSmoothFollow.height = 5.0f
float VehiclePhysics.CameraSmoothFollow.heightDamping = 2.0f
float VehiclePhysics.CameraSmoothFollow.heightMultiplier = 0.5f
float VehiclePhysics.CameraSmoothFollow.rotationDamping = 3.0f
float VehiclePhysics.CameraSmoothFollow.velocityDamping = 5.0f

The documentation for this class was generated from the following file: