Свойство | Тип | Описание | |
---|---|---|---|
gravity | float | ||
maxAirAcceleration | float | ||
maxBackwardsSpeed | float | ||
maxFallSpeed | float | ||
maxForwardSpeed | float | ||
maxGroundAcceleration | float | ||
maxSidewaysSpeed | float | ||
sliding | CharacterMotorSliding, | ||
slopeSpeedMultiplier |
Метод | Описание | |
---|---|---|
Awake ( ) : void | ||
FixedUpdate ( ) : void | ||
OnControllerColliderHit ( |
||
SetControllable ( bool controllable ) : void | ||
SetVelocity ( Vector3 velocity ) : void | ||
Update ( ) : void |
Метод | Описание | |
---|---|---|
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 |
public OnControllerColliderHit ( |
||
hit | ||
Результат | void |
public SetControllable ( bool controllable ) : void | ||
controllable | bool | |
Результат | void |
public SetVelocity ( Vector3 velocity ) : void | ||
velocity | Vector3 | |
Результат | void |