Class PlayerHeightChanger
Inheritance
PlayerHeightChanger
Assembly: Assembly-CSharp.dll
Syntax
[RequireComponent(typeof(PlayerMotor))]
[RequireComponent(typeof(CharacterController))]
[RequireComponent(typeof(HeadBobber))]
[RequireComponent(typeof(LevitateMotor))]
public class PlayerHeightChanger : MonoBehaviour
Fields
|
Improve this Doc
View Source
controllerCrouchHeight
Declaration
public const float controllerCrouchHeight = 0.9F
Field Value
|
Improve this Doc
View Source
controllerRideHeight
Declaration
public const float controllerRideHeight = 2.6F
Field Value
|
Improve this Doc
View Source
controllerStandingHeight
Declaration
public const float controllerStandingHeight = 1.8F
Field Value
|
Improve this Doc
View Source
controllerSwimHeight
Declaration
public const float controllerSwimHeight = 0.3F
Field Value
|
Improve this Doc
View Source
controllerSwimHorseDisplacement
Declaration
public const float controllerSwimHorseDisplacement = 0.3F
Field Value
|
Improve this Doc
View Source
eyeHeight
Declaration
public const float eyeHeight = 0.09F
Field Value
Properties
|
Improve this Doc
View Source
CurrentControllerStandingHeight
Declaration
public float CurrentControllerStandingHeight { get; }
Property Value
|
Improve this Doc
View Source
FixedControllerStandingHeight
Declaration
public float FixedControllerStandingHeight { get; }
Property Value
|
Improve this Doc
View Source
ForcedSwimCrouch
Declaration
public bool ForcedSwimCrouch { get; set; }
Property Value
|
Improve this Doc
View Source
HeightAction
Declaration
public HeightChangeAction HeightAction { get; set; }
Property Value
|
Improve this Doc
View Source
IsInWaterTile
Declaration
public bool IsInWaterTile { get; set; }
Property Value
|
Improve this Doc
View Source
StandingHeightAdjustment
Declaration
public float StandingHeightAdjustment { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
DecideHeightAction()
Determines what Height-changing action should be taken based on player's input and PlayerMotor.IsRiding
Declaration
public void DecideHeightAction()
Extension Methods
MBExtensions.Invoke<T1, T2, T3, T4>(MonoBehaviour, Action<T1, T2, T3, T4>, T1, T2, T3, T4, Single)