Class HeadBobber
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(PlayerFootsteps))]
[RequireComponent(typeof(PlayerEnterExit))]
public class HeadBobber : MonoBehaviour
Properties
|
Improve this Doc
View Source
BobStyle
Declaration
public BobbingStyle BobStyle { get; }
Property Value
|
Improve this Doc
View Source
RestPos
Declaration
public Vector3 RestPos { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
ApplySimpleBouncing(ref Vector3)
Declaration
protected void ApplySimpleBouncing(ref Vector3 newPosition)
Parameters
Type |
Name |
Description |
Vector3 |
newPosition |
|
|
Improve this Doc
View Source
GetBobbingStyle()
Declaration
protected void GetBobbingStyle()
|
Improve this Doc
View Source
getNewPos(ref Vector3, ref Vector3)
Declaration
protected void getNewPos(ref Vector3 newPosition, ref Vector3 newRotation)
Parameters
|
Improve this Doc
View Source
InterpolateBeginTransition(Vector3)
Declaration
protected Vector3 InterpolateBeginTransition(Vector3 newPosition)
Parameters
Type |
Name |
Description |
Vector3 |
newPosition |
|
Returns
|
Improve this Doc
View Source
InterpolateEndTransition(Single)
Declaration
protected Vector3 InterpolateEndTransition(float endTimer)
Parameters
Type |
Name |
Description |
Single |
endTimer |
|
Returns
|
Improve this Doc
View Source
PlotPath()
Declaration
protected Vector3 PlotPath()
Returns
|
Improve this Doc
View Source
PlotRotation()
Declaration
protected Vector3 PlotRotation()
Returns
|
Improve this Doc
View Source
SetParamsForBobbingStyle()
Declaration
protected void SetParamsForBobbingStyle()
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)