C# Class CharacterMotorCS, InputVCR

Inheritance: MonoBehaviour
Mostra file Open project: EddieCameron/InputVCR Class Usage Examples

Public Properties

Property Type Description
gravity float
maxAirAcceleration float
maxBackwardsSpeed float
maxFallSpeed float
maxForwardSpeed float
maxGroundAcceleration float
maxSidewaysSpeed float
sliding CharacterMotorSliding,
slopeSpeedMultiplier UnityEngine.AnimationCurve

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnControllerColliderHit ( ControllerColliderHit hit ) : void
SetControllable ( bool controllable ) : void
SetVelocity ( Vector3 velocity ) : void
Update ( ) : void

Private Methods

Method Description
AdjustGroundVelocityToNormal ( Vector3 hVelocity, Vector3 groundNormal ) : Vector3
ApplyGravityAndJumping ( Vector3 velocity ) : Vector3
ApplyInputVelocityChange ( Vector3 velocity ) : Vector3
CalculateJumpVerticalSpeed ( float targetJumpHeight ) : float
GetDesiredHorizontalVelocity ( ) : Vector3
GetDirection ( ) : Vector3
GetMaxAcceleration ( bool grounded ) : float
IsGrounded ( ) : bool
IsGroundedTest ( ) : bool
IsJumping ( ) : bool
IsSliding ( ) : bool
IsTouchingCeiling ( ) : bool
MaxSpeedInDirection ( Vector3 desiredMovementDirection ) : float
TooSteep ( ) : bool
UpdateFunction ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

OnControllerColliderHit() public method

public OnControllerColliderHit ( ControllerColliderHit hit ) : void
hit UnityEngine.ControllerColliderHit
return void

SetControllable() public method

public SetControllable ( bool controllable ) : void
controllable bool
return void

SetVelocity() public method

public SetVelocity ( Vector3 velocity ) : void
velocity Vector3
return void

Update() public method

public Update ( ) : void
return void

Property Details

gravity public_oe property

public float gravity
return float

maxAirAcceleration public_oe property

public float maxAirAcceleration
return float

maxBackwardsSpeed public_oe property

public float maxBackwardsSpeed
return float

maxFallSpeed public_oe property

public float maxFallSpeed
return float

maxForwardSpeed public_oe property

public float maxForwardSpeed
return float

maxGroundAcceleration public_oe property

public float maxGroundAcceleration
return float

maxSidewaysSpeed public_oe property

public float maxSidewaysSpeed
return float

sliding public_oe property

public CharacterMotorSliding, sliding
return CharacterMotorSliding,

slopeSpeedMultiplier public_oe property

public AnimationCurve,UnityEngine slopeSpeedMultiplier
return UnityEngine.AnimationCurve