C# Class CharacterMotorC, UnderworldExporter

Inheritance: MonoBehaviour
Mostra file Open project: hankmorgan/UnderworldExporter Class Usage Examples

Public Properties

Property Type Description
canControl bool
jumping CharacterMotorJumping,
movement CharacterMotorMovement,
movingPlatform CharacterMotorMovingPlatform,
sliding CharacterMotorSliding,
useFixedUpdate bool

Public Methods

Method Description
Awake ( ) : void
FixedUpdate ( ) : void
OnControllerColliderHit ( ControllerColliderHit hit ) : void
SetControllable ( bool controllable ) : void
SetVelocity ( Vector3 velocity ) : void
Update ( ) : void
UpdateFunction ( ) : 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 ) : double
MoveWithPlatform ( ) : bool
SubtractNewPlatformVelocity ( ) : IEnumerator
TooSteep ( ) : bool

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

UpdateFunction() public method

public UpdateFunction ( ) : void
return void

Property Details

canControl public_oe property

public bool canControl
return bool

jumping public_oe property

public CharacterMotorJumping, jumping
return CharacterMotorJumping,

movement public_oe property

public CharacterMotorMovement, movement
return CharacterMotorMovement,

movingPlatform public_oe property

public CharacterMotorMovingPlatform, movingPlatform
return CharacterMotorMovingPlatform,

sliding public_oe property

public CharacterMotorSliding, sliding
return CharacterMotorSliding,

useFixedUpdate public_oe property

public bool useFixedUpdate
return bool