Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Types | Public Member Functions | Public Attributes | Properties | List of all members
EdyCommonTools.RotationController.Rotation Class Reference

Public Types

enum  Axis { Axis.Up, Axis.Right, Axis.Forward }
 
enum  Mode { Mode.Disabled, Mode.Free, Mode.LookAtTarget, Mode.LookAtTargetCenter }
 

Public Member Functions

void ResetAngle (float newAngle)
 
 Rotation (Axis axis)
 
 Rotation (Axis axis, Mode rotationMode)
 
 Rotation (Axis axis, Mode rotationMode, float min, float max)
 
void Update (float deltaTime, Transform self, Transform target, Renderer targetRenderer, Transform reference)
 

Public Attributes

float angle
 
bool clamped = false
 
bool damped = true
 
float damping = 4.0f
 
float maxAngle = 120.0f
 
float minAngle = -120.0f
 
Mode mode = Mode.Free
 
float targetOffset
 

Properties

bool isRotating [get]
 
Quaternion rotation [get]
 

Member Enumeration Documentation

Enumerator
Up 
Right 
Forward 
Enumerator
Disabled 
Free 
LookAtTarget 
LookAtTargetCenter 

Constructor & Destructor Documentation

EdyCommonTools.RotationController.Rotation.Rotation ( Axis  axis)
inline
EdyCommonTools.RotationController.Rotation.Rotation ( Axis  axis,
Mode  rotationMode 
)
inline
EdyCommonTools.RotationController.Rotation.Rotation ( Axis  axis,
Mode  rotationMode,
float  min,
float  max 
)
inline

Member Function Documentation

void EdyCommonTools.RotationController.Rotation.ResetAngle ( float  newAngle)
inline
void EdyCommonTools.RotationController.Rotation.Update ( float  deltaTime,
Transform  self,
Transform  target,
Renderer  targetRenderer,
Transform  reference 
)
inline

Member Data Documentation

float EdyCommonTools.RotationController.Rotation.angle
bool EdyCommonTools.RotationController.Rotation.clamped = false
bool EdyCommonTools.RotationController.Rotation.damped = true
float EdyCommonTools.RotationController.Rotation.damping = 4.0f
float EdyCommonTools.RotationController.Rotation.maxAngle = 120.0f
float EdyCommonTools.RotationController.Rotation.minAngle = -120.0f
Mode EdyCommonTools.RotationController.Rotation.mode = Mode.Free
float EdyCommonTools.RotationController.Rotation.targetOffset

Property Documentation

bool EdyCommonTools.RotationController.Rotation.isRotating
get
Quaternion EdyCommonTools.RotationController.Rotation.rotation
get

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