C# Class SurfaceMovement, GameProject

Inheritance: MonoBehaviour
Exibir arquivo Open project: EECS390IndieTeam/GameProject Class Usage Examples

Public Properties

Property Type Description
accelerationFactor float
character UnityEngine.Rigidbody
grabDistance float
maxVelocity float
maxXSpeed float
maxYSpeed float
moveableLayers LayerMask
pCamera Transform
shiftDebounce float
totalLerpTime float

Public Methods

Method Description
attachToSurface ( RaycastHit hit ) : void
detachFromSurface ( ) : void
moveCharacter ( Vector2 inputVector ) : void

Private Methods

Method Description
GetInput ( ) : Vector2
calcupateDesiredSpeed ( Vector2 inputVector ) : float
lerp ( ) : void
roundCorner ( Vector2 inputVector, float desiredSpeed ) : void
zeroMovement ( Vector2 inputVector ) : void

Method Details

attachToSurface() public method

public attachToSurface ( RaycastHit hit ) : void
hit UnityEngine.RaycastHit
return void

detachFromSurface() public method

public detachFromSurface ( ) : void
return void

moveCharacter() public method

public moveCharacter ( Vector2 inputVector ) : void
inputVector Vector2
return void

Property Details

accelerationFactor public_oe property

public float accelerationFactor
return float

character public_oe property

public Rigidbody,UnityEngine character
return UnityEngine.Rigidbody

grabDistance public_oe property

public float grabDistance
return float

maxVelocity public_oe property

public float maxVelocity
return float

maxXSpeed public_oe property

public float maxXSpeed
return float

maxYSpeed public_oe property

public float maxYSpeed
return float

moveableLayers public_oe property

public LayerMask moveableLayers
return LayerMask

pCamera public_oe property

public Transform pCamera
return Transform

shiftDebounce public_oe property

public float shiftDebounce
return float

totalLerpTime public_oe property

public float totalLerpTime
return float